6 Commits

Author SHA1 Message Date
Andrew Reynolds
68fc815e03 Add setStringInput to the parser APIs (#10230)
This PR:

Updates the functionality of setIncrementalStringInput / appendIncrementalStringInput to a more intuitive behavior where append does not replace the current contents of the input.
Adds setStringInput to the API and updates the interactive shell to use this interface.
Updates the examples
Adds new unit tests
2023-12-15 19:50:57 +00:00
mudathirmahgoub
944db35aa1 Fix cpp api coverage check (#10193) 2023-12-04 08:32:52 -06:00
mudathirmahgoub
73b299d833 Add unit tests for ParserException (#10189) 2023-12-01 15:02:25 +00:00
mudathirmahgoub
115d3d200b Add parser to the java api (#10088) 2023-11-28 11:53:30 -06:00
Andrew Reynolds
3621c2c5e5 Fixes for uncovered parser API methods (#10082)
Fixes nightly builds.
2023-10-04 00:24:08 +00:00
Andrew Reynolds
74443f10ab Adding API checks, unit tests, and examples for the parser API (#10048)
This PR adds the proper checks for the parser API. It furthermore adds examples and unit tests for the parser API.

Note that InputParser::nextCommand and InputParser::nextTerm don't catch exceptions, since we want to throw ParserExceptions containing the parsing information, not API exceptions.

Also, at the moment, the InputParser can throw an exception during initialization, which is not caught either.
2023-10-02 15:51:32 +00:00