Lines Matching refs:Productions
169 self.productions = None # List of productions
192 prod = self.productions # Local reference to production list
483 global Productions, Prodnames, Prodmap, Terminals
487 Productions = [None] # A list of all of the productions. The first
492 # productions of that nonterminal.
495 # productions.
511 # productions with the "dot" like E -> E . PLUS E
587 # Precompute list of productions immediately following
667 p.number = len(Productions)
670 Productions.append(p)
710 # Set final length of productions
720 # Add to the global productions list
805 mark_reachable_from( Productions[0].prod[0], Reachable )
852 productions terminates.
872 # Don't need to consider any more productions for this n.
898 for p in Productions:
917 # Print out all of the productions
920 for i in range(1,len(Productions)):
921 _vf.write("Rule %-5d %s\n" % (i, Productions[i]))
924 # Verify the use of all productions
963 # This function walks the list of productions and builds a complete set of the
976 for p in Productions:
1032 start = Productions[1].name
1033 Productions[0] = Production(name="S'",prod=[start],number=0,len=1,prec=('right',0),func=None)
1034 Productions[0].usyms = [ start ]
1086 start = Productions[1].name
1092 for p in Productions[1:]:
1177 # prodlist is a list of productions.
1185 prodlist = Productions
1247 C = [ lr0_closure([Productions[0].lr_next]) ]
1309 for p in Productions[1:]:
1365 if state == 0 and N == Productions[0].prod[0]:
1578 # This function directly attaches the lookaheads to productions contained
1584 # Loop over productions in lookback
1680 sprec,slevel = Productions[actionp[st,a].number].prec
1701 oldp = Productions[-r]
1702 pp = Productions[p.number]
1735 rprec,rlevel = Productions[actionp[st,a].number].prec
1911 for p in Productions:
2009 del Productions[:]
2012 Productions.append(None)
2021 Productions.append(m)
2174 p.productions = Productions
2199 global Productions, Prodnames, Prodmap, Terminals
2203 del Productions, Prodnames, Prodmap, Terminals