Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
testParseGrammar
Method · 0.95
testAddPeephole
Method · 0.95
testSubPeephole
Method · 0.95
testMulPeephole
Method · 0.95
testDivPeephole
Method · 0.95
testMinusPeephole
Method · 0.95
testExample
Method · 0.95
testSimpleProgram
Method · 0.95
testZero
Method · 0.95
testBad1
Method · 0.45
testBad2
Method · 0.45
testNotBad3
Method · 0.45
Calls
4
parseStatement
Method · 0.95
error
Method · 0.95
isEOF
Method · 0.45
getAnyNextToken
Method · 0.45
Tested by
15
testParseGrammar
Method · 0.76
testAddPeephole
Method · 0.76
testSubPeephole
Method · 0.76
testMulPeephole
Method · 0.76
testDivPeephole
Method · 0.76
testMinusPeephole
Method · 0.76
testExample
Method · 0.76
testSimpleProgram
Method · 0.76
testZero
Method · 0.76
testBad1
Method · 0.36
testBad2
Method · 0.36
testNotBad3
Method · 0.36