Fixed whitespace/commas causing lexing error
This commit is contained in:
parent
8c156fcf15
commit
670aa7e732
@ -34,8 +34,8 @@ pub fn lex(input: &str) -> Result<TokenVector, String> {
|
||||
tokens.push(Token::Operator(RightParen));
|
||||
},
|
||||
'π' => tokens.push(Token::Identifier(Pi)),
|
||||
',' => continue,
|
||||
value if value.is_whitespace() => continue,
|
||||
',' => {},
|
||||
value if value.is_whitespace() => {},
|
||||
value if value.is_alphabetic() => {
|
||||
|
||||
let start_index = byte_index;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user