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

Method ArrayParser

src/stone/ArrayParser.java:9–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 Parser elements = rule(ArrayLiteral.class)
8 .ast(expr).repeat(rule().sep(",").ast(expr));
9 public ArrayParser() {
10 reserved.add("]");
11 primary.insertChoice(rule().sep("[").maybe(elements).sep("]"));
12 postfix.insertChoice(rule(ArrayRef.class).sep("[").ast(expr).sep("]"));
13 }
14}

Callers

nothing calls this directly

Calls 6

insertChoiceMethod · 0.80
sepMethod · 0.80
maybeMethod · 0.80
ruleMethod · 0.80
astMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected