Fixed whitespace/commas causing lexing error

This commit is contained in:
Kasper 2019-12-14 22:59:04 +01:00
parent 8c156fcf15
commit 670aa7e732

View File

@ -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;