Skip to main content

Crate lift_ast

Crate lift_ast 

Source
Expand description

LIFT AST: Lexer, parser, and AST for the .lif source language.

This crate provides tokenisation, parsing, and IR construction from LIFT source files. Use Lexer to tokenise, Parser to parse, and IrBuilder to lower the AST into the core IR.

Re-exports§

pub use builder::IrBuilder;
pub use lexer::Lexer;
pub use parser::Parser;
pub use token::Token;
pub use token::TokenKind;
pub use ast::*;

Modules§

ast
builder
lexer
parser
token

Functions§

build_context
Convenience: lower a Program AST into a populated Context.
parse_source
Convenience: parse a .lif source string into a Program AST.