示例#1
0
 public static void insymbol() {
   if (tokenIt.hasNext()) {
     nexttoken = tokenIt.next();
   } else {
     nexttoken = new Yytoken("LastToken", "last", -1, -1);
   }
 }
示例#2
0
  public AbstractNode parse() {
    // TODO Ein Modul pro file!
    AbstractNode tree = null;
    insymbol();
    while (tokenIt.hasNext()) {
      System.out.println("Starting with module");
      tree = module();
      insymbol();
      tree.print();
    }
    // term().print();
    // simpleExpression().print();
    // statementSequence();
    // declarations();

    return tree;
  }