Skip to content

Commit

Permalink
fix(lexer): correct typo in lexer (#9)
Browse files Browse the repository at this point in the history
Closes #8
  • Loading branch information
olamide203 committed Aug 27, 2022
1 parent 6870cdc commit 434b9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Lexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Token, { Tokens } from './Token';
// specifications for the tokenizer
const spec:[RegExp, Tokens][] = [
[/^\d+(\.\d+)?(e[+-]?\d+)?(?!\.)/, Tokens.NUMBER],
[/^(sin|cos|tan|log|ln|gammln|max|min|asin|acos|atam)/, Tokens.FUNCTION],
[/^(sin|cos|tan|log|ln|gammln|max|min|asin|acos|atan)/, Tokens.FUNCTION],
[/^(π|pi|e)/, Tokens.CONSTANT],
[/^[A-Za-z_][A-za-z0-9_]*/, Tokens.ID],
[/^[/+*%^-]/, Tokens.BINARY_INFIX],
Expand Down

0 comments on commit 434b9cf

Please sign in to comment.