Crate bulloak_syntax

Crate bulloak_syntax 

Source
Expand description

The syntax parser module.

This module includes everything necessary to convert from a tree in string form to an AST. It also includes a semantic analyzer.

Re-exports§

pub use tokenizer::Token;
pub use tokenizer::TokenKind;

Modules§

parser
A parser implementation for a stream of tokens representing a bulloak tree.
semantics
Implementation of the semantic analysis of a bulloak tree.
tokenizer
Defines a scanner for bulloak trees that produces a token stream.
utils
Various-string manipulation utilities.

Structs§

Action
An action node of the AST.
Condition
A condition node of the AST.
Description
A description node of the AST.
Position
A single position.
Root
The root node of the AST.
Span
Span represents the position information of a single token.

Enums§

Ast
An Abstract Syntax Tree (AST) that describes the semantic structure of a bulloak tree.

Traits§

FrontendError
A trait for representing frontend errors in the bulloak-syntax crate.
Visitor
A trait for visiting a tree AST in depth-first order.

Functions§

parse
Parses a string containing trees into ASTs.
parse_one
Parses a string containing a single tree into an AST.