Skip to content

Commit

Permalink
Merge pull request #532 from ruilisi/fix/decimal-parsing
Browse files Browse the repository at this point in the history
Fix Decimal Number Parsing in Lexer
  • Loading branch information
sanchit3008 committed May 6, 2024
2 parents 0bc2c6c + 906216e commit ef38acd
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 88 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
%lex
%%
\s+ {/* skip whitespace */}
[0-9]*\.?[0-9]+ {return 'NUMBER';}
'"'("\\"["]|[^"])*'"' {return 'STRING';}
"'"('\\'[']|[^'])*"'" {return 'STRING';}
[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]) {return 'FUNCTION';}
Expand Down

0 comments on commit ef38acd

Please sign in to comment.