@Test public void firstInEmptyGrammar() { Grammar g = new Grammar(); assertEquals(Sets.<Terminal>newHashSet(), g.getStart().getFirst()); }
public NonTerminal getStart() { return myStart; }
Grammar { public NonTerminal getStart() { return myStart; } }
Grammar { public NonTerminal getStart() { return myStart; } Grammar(); }
Grammar { public NonTerminal getStart() { return myStart; } Grammar(); NonTerminal getStart(); Terminal getEnd(); Terminal newTerminal(String name); NonTerminal newNonTerminal(String name); String uniqueName(String prefix); String uniqueName(String prefix, boolean forceNumber); Rule newRule(NonTerminal head, Symbol... symbols); Set<Terminal> getTerminals(); Set<NonTerminal> getNonTerminals(); Set<Symbol> getSymbols(); Set<Rule> getRules(); }
Grammar { public NonTerminal getStart() { return myStart; } Grammar(); NonTerminal getStart(); Terminal getEnd(); Terminal newTerminal(String name); NonTerminal newNonTerminal(String name); String uniqueName(String prefix); String uniqueName(String prefix, boolean forceNumber); Rule newRule(NonTerminal head, Symbol... symbols); Set<Terminal> getTerminals(); Set<NonTerminal> getNonTerminals(); Set<Symbol> getSymbols(); Set<Rule> getRules();  }