MCPcopy Create free account
hub / github.com/chibash/stone / nextOperator

Method nextOperator

src/stone/Parser.java:216–222  ·  view source on GitHub ↗
(Lexer lexer)

Source from the content-addressed store, hash-verified

214 return factory.make(list);
215 }
216 private Precedence nextOperator(Lexer lexer) throws ParseException {
217 Token t = lexer.peek(0);
218 if (t.isIdentifier())
219 return ops.get(t.getText());
220 else
221 return null;
222 }
223 private static boolean rightIsExpr(int prec, Precedence nextPrec) {
224 if (nextPrec.leftAssoc)
225 return prec < nextPrec.value;

Callers 2

parseMethod · 0.95
doShiftMethod · 0.95

Calls 4

isIdentifierMethod · 0.95
getTextMethod · 0.95
peekMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected