Implement core lexer and parser

This commit is contained in:
2026-06-16 02:02:17 +09:00
parent 12a6e9a84c
commit ddcee75c8d
7 changed files with 1083 additions and 1 deletions
+12
View File
@@ -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")
}