Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parser: changed state enumeration to number
changed the state enumeration to number enumeration with yes and no enumerator since this is really what this argument is telling parser (to allow numbers or not) changes made to get token function of translator: - added data type not equal to string for setting parser number argument since numeric constants are not allowed when looking for a string - removed check to set the token length to one upon error when there was number error when not looking for a number or looking for a string (these won't occur so no need to check) - simplified check when returned and expected expression error to checking if data type is not blank and not none and unknown token error was returned - removed local state/number variable (only used for parse argument)
- Loading branch information
1 parent
04c4fea
commit 5690b1b
Showing
4 changed files
with
11 additions
and
21 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
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
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
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