Skip to content

Commit

Permalink
feat: support for square brackets in lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
yazaldefilimone committed Feb 25, 2024
1 parent 6f28465 commit 2148de9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lexer/lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ export class Lexer {
return this.createToken(TokenType.LPAREN, "(");
case ")":
return this.createToken(TokenType.RPAREN, ")");
case "[":
return this.createToken(TokenType.LBRACKET, "[");
case "]":
return this.createToken(TokenType.RBRACKET, "]");
case ",":
return this.createToken(TokenType.COMMA, ",");
case "":
Expand Down

0 comments on commit 2148de9

Please sign in to comment.