Skip to content

Commit

Permalink
feat: Add support for Chinese parentheses and semicolons (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bbbtt04 committed May 10, 2024
1 parent 81f3d40 commit 0e46622
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions interpreter/src/lexer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ impl Lexer {
Token::GT
}
},
';' => Token::Semicolon,
',' => Token::Comma,
'(' => Token::LParen,
')' => Token::RParen,
';' | ';' => Token::Semicolon,
',' | ',' => Token::Comma,
'(' | '(' => Token::LParen,
')' | ')' => Token::RParen,
'{' => Token::LBrace,
'}' => Token::RBrace,
'=' => {
Expand Down

0 comments on commit 0e46622

Please sign in to comment.