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

Method Parser

chapter16/src/main/java/com/seaofnodes/simple/Parser.java:105–119  ·  view source on GitHub ↗
(String source, TypeInteger arg)

Source from the content-addressed store, hash-verified

103
104
105 public Parser(String source, TypeInteger arg) {
106 Node.reset();
107 IterPeeps.reset();
108 SCHEDULED = false;
109 _lexer = new Lexer(source);
110 _scope = new ScopeNode();
111 _continueScope = _breakScope = null;
112 START = new StartNode(arg);
113 STOP = new StopNode(source);
114 ZERO = con(0).keep();
115 XCTRL= new XCtrlNode().peephole().keep();
116 ALIAS = 2; // alias 0 for the control, 1 for memory
117 TYPES = defaultTypes();
118 INITS = new HashMap<>();
119 }
120
121 public Parser(String source) {
122 this(source, TypeInteger.BOT);

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected