From 0ce869e859f189f1ac7940fcec46f67a5beb6a18 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Sun, 19 Nov 2023 16:49:27 +0100 Subject: [PATCH] comment out tokens that aren't needed yet --- src/lexer.rs | 84 +++++++++++++++++++++++------------------------ src/syntax/mod.rs | 4 +-- 2 files changed, 44 insertions(+), 44 deletions(-) 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