1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
/*! ## Rust Language Module This Rust module provides lexical analysis and parsing of the BASIC language. */ pub type Column = std::ops::Range<usize>; pub type LineNumber = Option<u16>; pub trait MaxValue<T> { fn max_value() -> T; } impl MaxValue<u16> for LineNumber { fn max_value() -> u16 { 65529 } } mod error; mod lex; mod line; mod parse; pub use error::Error; pub use error::ErrorCode; pub use lex::lex; pub use line::Line; pub use parse::parse; pub mod ast; pub mod token;