MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / constructor

Method constructor

src/core/kernel.js:19–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 #assignableExpressions = [];
18
19 constructor() {
20 // Top-level program structure
21 this.addGrammarElement("hyperscript", this.parseHyperscriptProgram.bind(this));
22 this.addGrammarElement("feature", this.parseFeature.bind(this));
23
24 // Command structure
25 this.addGrammarElement("commandList", this.parseCommandList.bind(this));
26 this.addGrammarElement("command", this.parseCommand.bind(this));
27 this.addGrammarElement("indirectStatement", this.parseIndirectStatement.bind(this));
28
29 // Expression precedence chain (top to bottom)
30 this.addGrammarElement("expression", this.parseExpression.bind(this));
31 this.addGrammarElement("assignableExpression", this.parseAssignableExpression.bind(this));
32 this.addGrammarElement("unaryExpression", this.parseUnaryExpression.bind(this));
33 this.addGrammarElement("postfixExpression", this.parsePostfixExpression.bind(this));
34 this.addGrammarElement("primaryExpression", this.parsePrimaryExpression.bind(this));
35 this.addGrammarElement("indirectExpression", this.parseIndirectExpression.bind(this));
36 this.addGrammarElement("leaf", this.parseLeaf.bind(this));
37
38 }
39
40 parseFeature(parser) {
41 if (parser.matchOpToken("(")) {

Callers

nothing calls this directly

Calls 1

addGrammarElementMethod · 0.95

Tested by

no test coverage detected