aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/lex/lexer.rs
diff options
context:
space:
mode:
authorTolmachev Igor <me@igorek.dev>2026-05-10 12:47:18 +0300
committerTolmachev Igor <me@igorek.dev>2026-05-10 12:47:37 +0300
commit1801afdbd0058cc9cc040b977de0d5652d65aab9 (patch)
treefafafb12e7d877f506e022ecb282e66cecb72bdc /compiler/src/lex/lexer.rs
parent160b64427d79290a59ac48c9babca064232d8dfd (diff)
downloadcrisp-1801afdbd0058cc9cc040b977de0d5652d65aab9.tar.gz
crisp-1801afdbd0058cc9cc040b977de0d5652d65aab9.zip
Remove Quote from parser
Dropped to make the language simpler.
Diffstat (limited to 'compiler/src/lex/lexer.rs')
-rw-r--r--compiler/src/lex/lexer.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/compiler/src/lex/lexer.rs b/compiler/src/lex/lexer.rs
index 801d382..6efbca0 100644
--- a/compiler/src/lex/lexer.rs
+++ b/compiler/src/lex/lexer.rs
@@ -4,7 +4,7 @@ use crate::{
4}; 4};
5 5
6fn is_terminator(ch: char) -> bool { 6fn is_terminator(ch: char) -> bool {
7 ch.is_whitespace() || matches!(ch, '(' | ')' | '\'' | '"' | ';') 7 ch.is_whitespace() || matches!(ch, '(' | ')' | '"' | ';')
8} 8}
9 9
10pub struct Lexer<'a> { 10pub struct Lexer<'a> {
@@ -128,10 +128,6 @@ impl<'a> Iterator for Lexer<'a> {
128 self.consume(); 128 self.consume();
129 Token::RightPar 129 Token::RightPar
130 } 130 }
131 '\'' => {
132 self.consume();
133 Token::Quote
134 }
135 131
136 // Number 132 // Number
137 ch if ch.is_ascii_digit() 133 ch if ch.is_ascii_digit()