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

Method Parser

chapter11/src/main/java/com/seaofnodes/simple/Parser.java:82–94  ·  view source on GitHub ↗
(String source, TypeInteger arg)

Source from the content-addressed store, hash-verified

80 public static Map<String, TypeStruct> OBJS = new HashMap<>();
81
82 public Parser(String source, TypeInteger arg) {
83 Node.reset();
84 IterPeeps.reset();
85 OBJS.clear();
86 SCHEDULED = false;
87 _lexer = new Lexer(source);
88 _scope = new ScopeNode();
89 _continueScope = _breakScope = null;
90 START = new StartNode(new Type[]{ Type.CONTROL, arg });
91 STOP = new StopNode(source);
92 ZERO = new ConstantNode(TypeInteger.constant(0)).peephole().keep();
93 XCTRL= new XCtrlNode().peephole().keep();
94 }
95
96 public Parser(String source) {
97 this(source, TypeInteger.BOT);

Callers

nothing calls this directly

Calls 6

resetMethod · 0.95
resetMethod · 0.95
constantMethod · 0.95
clearMethod · 0.45
keepMethod · 0.45
peepholeMethod · 0.45

Tested by

no test coverage detected