Crate sylt_parser

Source

Re-exports§

pub use self::expression::Expression;
pub use self::expression::ExpressionKind;
pub use self::statement::Statement;
pub use self::statement::StatementKind;

Modules§

expression
statement

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§

AssignableKind
The different kinds of Assignables.
Op
The different kinds of assignment operators: +=, -=, *=, /= and =.
Prec
The precedence of an operator.
TypeKind
VarKind
Variables can be any combination of {Force,}{Const,Mutable}.

Traits§

Next
Numbered

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.