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

Method addTopExpression

www/js/_hyperscript.esm.js:1662–1665  ·  view source on GitHub ↗
(name, definition)

Source from the content-addressed store, hash-verified

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

Callers 1

registerParseElementMethod · 0.45

Calls 1

addGrammarElementMethod · 0.45

Tested by

no test coverage detected