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

Method matchId

chapter24/src/main/java/com/seaofnodes/simple/Parser.java:1823–1830  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1821 }
1822
1823 //////////////////////////////////
1824 // Utilities for lexical analysis
1825
1826 // Return true and skip if "syntax" is next in the stream.
1827 private boolean match (String syntax) { return _lexer.match (syntax); }
1828 // Match must be "exact", not be followed by more id letters
1829 private boolean matchx(String syntax) { return _lexer.matchx(syntax); }
1830 private boolean matchOp(char c0 ) { return _lexer.matchOp(c0); }
1831 private boolean matchOpx(char c0, char c1) { return _lexer.matchOpx(c0,c1); }
1832 // Return true and do NOT skip if 'ch' is next
1833 private boolean peek(char ch) { return _lexer.peek(ch); }

Callers 5

parseAsgnMethod · 0.45
typeMethod · 0.45
parseUnaryMethod · 0.45
parsePrimaryMethod · 0.45
requireIdMethod · 0.45

Calls 2

posMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected