-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lexer: do not lex decimal numbers when the parser won't accept them
A conflict arises with code positioning and decimal numbers (e.g., 2.2). To address this, the incremental API of Menhir is now employed. When the lexer identifies a decimal number, but the parser is in a state where a decimal number isn't accepted, it returns the a number-dot-number token sequence instead.
- Loading branch information
Showing
1 changed file
with
78 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters