Fix mix-up in the parser
>= and > had gotten mixed up and were being parsed as each other. This is fixed. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -208,9 +208,9 @@ impl Lexer {
|
||||
}
|
||||
} else if self.mat('>') {
|
||||
if self.mat('=') {
|
||||
return Ok(self.make_token(TokenKind::Greater));
|
||||
} else {
|
||||
return Ok(self.make_token(TokenKind::GreaterEq));
|
||||
} else {
|
||||
return Ok(self.make_token(TokenKind::Greater));
|
||||
}
|
||||
} else if self.mat('(') {
|
||||
self.paren_stack.push(')');
|
||||
|
||||
Reference in New Issue
Block a user