Re-exports§
pub use self::expression::Expression;
pub use self::expression::ExpressionKind;
pub use self::statement::Statement;
pub use self::statement::StatementKind;
Modules§
Macros§
- expect
- Eat any one of the specified tokens and raise a syntax error if none is found.
- raise_
syntax_ error - Raise a syntax error at the current token with a message.
- syntax_
error - Construct a syntax error at the current token with a message.
Structs§
- AST
- Contains modules.
- Assignable
- Something that can be assigned to. The assignable value can be read if the assignable is in an expression. Contains any AssignableKind.
- Context
- Keeps track of where the parser is currently parsing.
- Identifier
- Module
- Contains statements.
- Span
- A location in a file containing source code.
- Type
- A parsed type. Contains any TypeKind.
Enums§
- Assignable
Kind - The different kinds of Assignables.
- Op
- The different kinds of assignment operators:
+=
,-=
,*=
,/=
and=
. - Prec
- The precedence of an operator.
- Type
Kind - VarKind
- Variables can be any combination of
{Force,}{Const,Mutable}
.
Traits§
Functions§
- find_
conflict_ markers - Look for git conflict markers (
<<<<<<<
) in a file. - tree
- Parses the contents of a file as well as all files this file refers to and so on.