MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / Parser

Method Parser

chapter24/src/main/java/com/seaofnodes/simple/Parser.java:94–103  ·  view source on GitHub ↗
(CodeGen code, TypeInteger arg)

Source from the content-addressed store, hash-verified

92
93
94 public Parser(CodeGen code, TypeInteger arg) {
95 _code = code;
96 _scope = new ScopeNode();
97 _continueScope = _breakScope = null;
98 ZERO = con(TypeInteger.ZERO).keep();
99 NIL = con(Type.NIL).keep();
100 XCTRL= new XCtrlNode().peephole().keep();
101 TYPES = defaultTypes();
102 INITS = new HashMap<>();
103 }
104
105 @Override
106 public String toString() { return _lexer.toString(); }

Callers

nothing calls this directly

Calls 4

conMethod · 0.95
defaultTypesMethod · 0.95
keepMethod · 0.45
peepholeMethod · 0.45

Tested by

no test coverage detected