(keyword, definition)
| 1586 | } |
| 1587 | } |
| 1588 | addFeature(keyword, definition) { |
| 1589 | var featureGrammarType = keyword + "Feature"; |
| 1590 | this.#grammar[featureGrammarType] = definition; |
| 1591 | this.#features[keyword] = definition; |
| 1592 | } |
| 1593 | /** |
| 1594 | * Register a parse element class based on its static metadata. |
| 1595 | * Commands need `static keyword`, expressions need `static grammarName`. |
no outgoing calls
no test coverage detected