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

Method Parser

chapter04/src/main/java/com/seaofnodes/simple/Parser.java:45–51  ·  view source on GitHub ↗
(String source, TypeInteger arg)

Source from the content-addressed store, hash-verified

43 */
44 private final HashSet<String> KEYWORDS = new HashSet<>(){{
45 add("int");
46 add("return");
47 }};
48
49
50 public Parser(String source, TypeInteger arg) {
51 PARSER = this;
52 Node.reset();
53 _lexer = new Lexer(source);
54 _scope = new ScopeNode();

Callers

nothing calls this directly

Calls 2

resetMethod · 0.95
peepholeMethod · 0.45

Tested by

no test coverage detected