diff --git a/src/lexer.rs b/src/lexer.rs index 9db137c..a8b9a31 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -11,48 +11,48 @@ pub enum Token<'a> { FloatLiteral(f64), #[regex(r#""([^"\\]|\\["\\bnfrt]|u[a-fA-F0-9]{4})*""#, |lex| lex.slice().to_owned())] StringLiteral(String), - #[token("def")] - Define, - #[token("type")] - Type, - #[token("->")] - RightArrow, #[token("|")] Pipe, - #[token("[")] - BracketOpening, - #[token("]")] - BracketClosing, - #[token("(")] - ParensOpening, - #[token(")")] - ParensClosing, - #[token("{")] - BraceOpening, - #[token("}")] - BraceClosing, - #[token("+")] - Plus, - #[token("-")] - Minus, - #[token("*")] - Multiply, - #[token("/")] - Divide, - #[token("%")] - Percent, - #[token("&")] - Ampersand, - #[token(":")] - Colon, - #[token(";")] - Semicolon, - #[token(".")] - Dot, - #[token(",")] - Comma, - #[token("!")] - ExclaimationMark, - #[token("?")] - QuestionMark, + // #[token("def")] + // Define, + // #[token("type")] + // Type, + // #[token("->")] + // RightArrow, + // #[token("[")] + // BracketOpening, + // #[token("]")] + // BracketClosing, + // #[token("(")] + // ParensOpening, + // #[token(")")] + // ParensClosing, + // #[token("{")] + // BraceOpening, + // #[token("}")] + // BraceClosing, + // #[token("+")] + // Plus, + // #[token("-")] + // Minus, + // #[token("*")] + // Multiply, + // #[token("/")] + // Divide, + // #[token("%")] + // Percent, + // #[token("&")] + // Ampersand, + // #[token(":")] + // Colon, + // #[token(";")] + // Semicolon, + // #[token(".")] + // Dot, + // #[token(",")] + // Comma, + // #[token("!")] + // ExclaimationMark, + // #[token("?")] + // QuestionMark, } diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index 883db1f..890de00 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -102,6 +102,6 @@ pub fn parse_syntax(input: &str) -> Result, Vec