Package lupos.rif.generated.syntaxtree

Examples of lupos.rif.generated.syntaxtree.RIFClause


  }

  public Object visit(final RIFRule n, final IRuleNode argu) {
    final Rule rule = new Rule();
    rule.setParent(argu);
    RIFClause clause = null;
    // Wenn Variablen vorhanden
    if (n.f0.which == 0) {
      final List<INode> seq = (List<INode>) n.f0.choice.accept(this, rule);
      for (final INode node : ((List<INode>) seq.get(1).accept(this, rule)))
        rule.addVariable((RuleVariable) node.accept(this, rule));
      clause = (RIFClause) seq.get(3);
    } else
      clause = (RIFClause) n.f0.choice;
    clause.accept(this, rule);
    return rule;
  }
View Full Code Here

TOP

Related Classes of lupos.rif.generated.syntaxtree.RIFClause

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.