Enum flycatcher_parser::ast::Ast [−][src]
pub enum Ast {
NullLiteral,
BooleanLiteral(bool),
FloatLiteral(f64),
IntegerLiteral(i64),
IdentifierLiteral(String),
StringLiteral(String),
BinaryExpression(Opcode, Box<AstMeta>, Box<AstMeta>),
IndexExpression(Vec<AstMeta>),
BracketIndex(Box<AstMeta>),
PositiveUnary(Box<AstMeta>),
NegativeUnary(Box<AstMeta>),
}Expand description
A list of possible AST expressions.
Variants
A boolean literal, either true or false.
Tuple Fields of BooleanLiteral
0: boolA 64-bit floating point number literal.
Tuple Fields of FloatLiteral
0: f64A 64-bit integer literal.
Tuple Fields of IntegerLiteral
0: i64An identifier literal.
Tuple Fields of IdentifierLiteral
0: StringA string literal.
Tuple Fields of StringLiteral
0: StringA binary expression with two operands.
1 + 1
An expression made with an unlimited amount of indexes, for example,
item1["item2"].item3[item4()]
An index for an IndexExpression that may contain something other than an identifier.
item1["BracketIndexHere"]
This is caused by using the + operator at the start of an operand, such as +10.
This is caused by using the - operator at the start of an operand, such as -10.