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

Method Parser

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

Source from the content-addressed store, hash-verified

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