Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed how parser is called; added new translate function
instead of creating a single parser instance for the whole program (in main), a parser instance is created when needed (since there are no member variables that need to be kept between parse calls implemented a new translator function setInput() to translate a line and return the status of the translate; if successful then the rpn output list can be obtained, otherwise the error can be obtained; this function instances its own parser to parse the input test routine parseInput() rewritten to instance its own parser test routine translateInput() rewritten to use new Translator setInput() function along with new functions for returning error token and message
- Loading branch information
1 parent
30dc86d
commit a88ed2f
Showing
5 changed files
with
119 additions
and
72 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
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