Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- new switch `parse_defs` on `struct Parser` that is read in `Parser.read_one` and disables parsing new syntax definitions if `false` - made `Parser` public so that it can be used directly without relying on `fn parse` - made field `Parser.reader` public so that it can be used as it was being used for reporting location of failure in `fn parse` - new Parser constructors `Parser::recursive` and `Parser::one_shot` to construct Parsers that do and do not have the ability to parse new syntax definitions, respectively - made fn `Parser.read_all` public so that it can be used directly without relying on `fn parse`
- Loading branch information