parser library Null safety
- A Parser checks if any of its rules can replace nodes in the model.
- Throw a ParserError when there was a fatal error and the parsing could not be completed. A ParserError can be nested.
Throw ParserWarnings when a none fatal error occurred and the Parser should continue
e.g. when calling the ParserRule.createReplacementNodes method and
a ParserWarning was thrown because there was a syntax error.
The Parser will catch ParserWarnings and store them in
Parser.warningsA ParserWarning can be nested.
- The RootNode must be a ParentNode without a parent
- Looks for a TextNode and then matches TextNode.text with a RegExp. It creates replacement nodes