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

Method Parser

chapter17/src/main/java/com/seaofnodes/simple/Parser.java:104–118  ·  view source on GitHub ↗
(String source, TypeInteger arg)

Source from the content-addressed store, hash-verified

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