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

Method Parser

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

Source from the content-addressed store, hash-verified

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