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

Method parse

chapter02/src/main/java/com/seaofnodes/simple/Parser.java:36–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34
35
36 public Parser(String source) {
37 _lexer = new Lexer(source);
38 PARSER = this;
39 Node.reset();
40 START = new StartNode();
41 }
42
43 String src() { return new String( _lexer._input ); }

Callers 15

testParseGrammarMethod · 0.95
testAddPeepholeMethod · 0.95
testSubPeepholeMethod · 0.95
testMulPeepholeMethod · 0.95
testDivPeepholeMethod · 0.95
testMinusPeepholeMethod · 0.95
testExampleMethod · 0.95
testSimpleProgramMethod · 0.95
testZeroMethod · 0.95
testBad1Method · 0.45
testBad2Method · 0.45
testNotBad3Method · 0.45

Calls 4

parseStatementMethod · 0.95
errorMethod · 0.95
isEOFMethod · 0.45
getAnyNextTokenMethod · 0.45

Tested by 15

testParseGrammarMethod · 0.76
testAddPeepholeMethod · 0.76
testSubPeepholeMethod · 0.76
testMulPeepholeMethod · 0.76
testDivPeepholeMethod · 0.76
testMinusPeepholeMethod · 0.76
testExampleMethod · 0.76
testSimpleProgramMethod · 0.76
testZeroMethod · 0.76
testBad1Method · 0.36
testBad2Method · 0.36
testNotBad3Method · 0.36