Implement core lexer and parser
This commit is contained in:
@@ -2,6 +2,18 @@
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
pub mod ast;
|
||||
pub mod diagnostic;
|
||||
pub mod lexer;
|
||||
pub mod parser;
|
||||
pub mod span;
|
||||
|
||||
pub use ast::{Ast, BinaryOp, CompareOp, Expr, ExprId, Field, Literal, Param};
|
||||
pub use diagnostic::{Diagnostic, DiagnosticKind, Result};
|
||||
pub use lexer::{Lexer, Token, TokenKind};
|
||||
pub use parser::{ParseOutput, Parser, parse_source};
|
||||
pub use span::Span;
|
||||
|
||||
pub fn version() -> &'static str {
|
||||
env!("CARGO_PKG_VERSION")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user