()
| 18086 | // Returns a pointer to the Particle containing the parser definition. In the future this will |
| 18087 | // be in the same file. Right now we still have the split between Parser definitions and program code. |
| 18088 | get definition() { |
| 18089 | if (this._definition) return this._definition |
| 18090 | this._definition = this.isRoot() ? this.handParsersProgram : this.parent.definition.getParserDefinitionByParserId(this.constructor.name) |
| 18091 | return this._definition |
| 18092 | } |
| 18093 | registerParsers(parserCode, id) { |
| 18094 | // Todo: hacky as shit for now. Thats fine. |
| 18095 | // What we do here is if a parser comes in we recreate the entire root parser. |
nothing calls this directly
no test coverage detected