Package beaver.spec

Examples of beaver.spec.GrammarSymbol


        if (conf.has_contributed || conf.isDotAfterLastSymbol())
          continue;

        conf_set_factory.reset();

        GrammarSymbol marked_symbol = conf.getSymbolAfterDot();

        // For every configuration in the "from" state which also has the "marked_symbol"
        // after the "dot" add the same configuration to the core set under construction
        // but with the mark ("dot") shifted one symbol to the right.
        for (Configuration nconf = conf; nconf != null; nconf = nconf.next)
View Full Code Here


   */
  boolean addLookaheads(Configuration conf)
  {
    for (int i = conf.dot + 1; i < conf.rule.rhs.items.length; i++)
    {
      GrammarSymbol sym = conf.rule.rhs.items[i].symbol;
      if (sym instanceof Terminal)
      {
        lookaheads.add(sym.id);
        return false;
      }
View Full Code Here

      for (Configuration conf = first_conf; conf != null; conf = conf.next)
      {
        if (conf.isDotAfterLastSymbol())
          continue;

        GrammarSymbol sym = conf.getSymbolAfterDot();
        if (sym instanceof NonTerminal)
        {
          NonTerminal nt = (NonTerminal) sym;
          for (Production rule = nt.definitions.start(); rule != null; rule = rule.next_definition)
          {
View Full Code Here

TOP

Related Classes of beaver.spec.GrammarSymbol

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.