예제 #1
0
 protected boolean isInFirstOfListElement(Lex lex) {
   return lex.front() instanceof Argument;
 }
예제 #2
0
 public Node createNode(Lex lex) throws ParserException {
   Node result = lex.front();
   if (!(result instanceof Argument)) throw new ParserException("");
   lex.popFront();
   return result;
 }