Add token-based PEG frontend and CLI source parsing
Verify databases and deploy Aster VM / verify-and-deploy (push) Successful in 7m30s

This commit is contained in:
2026-10-19 02:48:23 +08:00
parent e24909a56e
commit 0b3a480555
36 changed files with 1146 additions and 33 deletions
+14
View File
@@ -0,0 +1,14 @@
//! UTF-8 source frontend: a handwritten lexer and token-based rust-peg parser.
//! Produces syntax only; it does not resolve types, generate code or execute VM
//! operations. AST data owns its text and does not borrow the source buffer.
pub mod ast;
mod diagnostic;
mod lexer;
mod parser;
mod token;
pub use diagnostic::{Diagnostic, DiagnosticKind, SourceLocation, Span};
pub use lexer::lex;
pub use parser::{parse, parse_expression};
pub use token::{Token, TokenKind};