Expand description
Parses GeoScript’s tokens into a structured representation. Most of this module’s
functionality is autogenerated through macros.
Structs§
- A user-defined type.
- Properties usually related to displaying things.
$id(a, b, ...)- an explicit iterator with an id.- A value being raised to a rational power
v^exp. - A parsed binary operator expression.
- A parsed function call
- A parsed parenthesised expression
- A field access on a value
value.field - Defines the first half of a flag statement.
- A set of flags.
- Defines a compiler flag or flagset.
- Punctuated expressions.
- The stream (peekable iterator) of input tokens
- An inverted rule operator.
let <something> = <something else>. Defines variables and possibly adds rules to them.- A simple token option for use with
FirstToken &(point, ...)- a point collection constructor allowing the creation of of a point collection from individual point expressions.- A property
- A utility struct for collections of parsed items with punctuators between them.
- A rational exponent of form
(a/b), whereaandbare integer tokens. - A raw string line
!"Hello, World!". Does not parse any special characters. ?expr. Used for displaying and biases.lhs ruleop rhs. Defines a rule.- A parsed simple expression.
- A simple token alternative for use with
FirstToken - A single variable definition. Contains its name and optional display properties
Enums§
- A binary operator, like
+,-,*or/. - An integer or a ratio. Used for exponents in exponentiation.
- A parsed expression. Either an implicit iterator or a binary operation.
- Defines the second half of a flag statement.
- A name (field, method or variable).
- A builtin rule operator
- A property’s value
- A rule operator.
- A parsed simple expression.
- A general statement. A rule,
letor a ref - A builtin type.
Traits§
- Check if
Selfwould parse given the tokens. - Trait for conversion of properties into actual types.
- The main trait for parsing tokens.