2 Commits

Author SHA1 Message Date
Andrew Reynolds
26308ebd1d Minor change to parser example, fix for bags doc (#10086)
* Minor change to parser example, fix for bags doc

* Format
2023-10-05 09:34:21 -05: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