Expand description
Parses GeoScript
’s tokens into a structured representation. Most of this module’s
functionality is autogenerated through macros.
Structs§
- AtLeast
One - Vector with at least one element.
- Defined
Type - A user-defined type.
- Display
Properties - Properties usually related to displaying things.
- Displayed
- Generic structure for statements that accept display options.
- Explicit
Iterator $id(a, b, ...)
- an explicit iterator with an id.- Exponentiation
- A value being raised to a rational power
v^exp
. - Expr
Binop - A parsed binary operator expression.
- Expr
Call - A parsed function call
- Expr
Parenthesised - A parsed parenthesised expression
- Field
Index - A field access on a value
value.field
- Flag
Name - Defines the first half of a flag statement.
- FlagSet
- A set of flags.
- Flag
Statement - Defines a compiler flag or flagset.
- Implicit
Iterator - Punctuated expressions.
- Input
Stream - The stream (peekable iterator) of input tokens
- Inverted
Rule Operator - An inverted rule operator.
- LetStatement
let <something> = <something else>
. Defines variables and possibly adds rules to them.- Maybe
- A simple token option for use with
FirstToken
- Point
Collection Constructor &(point, ...)
- a point collection constructor allowing the creation of of a point collection from individual point expressions.- Property
- A property
- Punctuated
- A utility struct for collections of parsed items with punctuators between them.
- Rational
Exponent - A rational exponent of form
(a/b)
, wherea
andb
are integer tokens. - RawString
- A raw string line
!"Hello, World!"
. Does not parse any special characters. - RefStatement
?expr
. Used for displaying and biases.- Rule
Statement lhs ruleop rhs
. Defines a rule.- Simple
Expression - A parsed simple expression.
- TokenOr
- A simple token alternative for use with
FirstToken
- Variable
Definition - A single variable definition. Contains its name and optional display properties
Enums§
- Binary
Operator - A binary operator, like
+
,-
,*
or/
. - Exponent
- An integer or a ratio. Used for exponents in exponentiation.
- Expression
- A parsed expression. Either an implicit iterator or a binary operation.
- Flag
Value - Defines the second half of a flag statement.
- Name
- A name (field, method or variable).
- Predefined
Rule Operator - A builtin rule operator
- Property
Value - A property’s value
- Rule
Operator - A rule operator.
- Simple
Expression Kind - A parsed simple expression.
- Statement
- A general statement. A rule,
let
or a ref - Type
- A builtin type.
Traits§
- Check
Parses - Check if
Self
would parse given the tokens. - From
Property - Trait for conversion of properties into actual types.
- Parse
- The main trait for parsing tokens.