MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / addTopExpression

Method addTopExpression

www/js/_hyperscript.js:1664–1667  ·  view source on GitHub ↗
(name, definition)

Source from the content-addressed store, hash-verified

1662 this.addGrammarElement(name, definition);
1663 }
1664 addTopExpression(name, definition) {
1665 this.#topExpressions.push(name);
1666 this.addGrammarElement(name, definition);
1667 }
1668 commandStart(token) {
1669 return this.#commands[token.value || ""];
1670 }

Callers 1

registerParseElementMethod · 0.45

Calls 1

addGrammarElementMethod · 0.45

Tested by

no test coverage detected