Skip to main content

Crate probl_syntax

Crate probl_syntax 

Source
Expand description

Front end of the Probl language: source files, tokens, the AST, the parser and diagnostics.

Re-exports§

pub use diagnostic::Diagnostic;
pub use diagnostic::Severity;
pub use diagnostic::render_all;
pub use parser::parse_expr;
pub use parser::parse_program;
pub use span::SourceFile;
pub use span::Span;

Modules§

ast
The abstract syntax tree produced by the parser.
diagnostic
Errors and warnings with source locations, rendered with ariadne.
lexer
Turns source text into tokens.
parser
Recursive-descent parser, with Pratt parsing for binary operators.
sexpr
A compact S-expression rendering of the AST, used in tests.
span
Source text and byte-offset spans into it.
token
Tokens produced by the lexer.