Home | History | Annotate | Download | only in ply

Lines Matching refs:Productions

241         self.productions = lrtab.lr_productions
287 prod = self.productions # Local reference to production list (to avoid lookup on self.)
602 prod = self.productions # Local reference to production list (to avoid lookup on self.)
874 prod = self.productions # Local reference to production list (to avoid lookup on self.)
1136 # Here are the basic attributes defined on all productions
1204 # Precompute the list of productions immediately following. Hack. Remove later
1265 # lr_after - List of all productions that immediately follow
1316 self.Productions = [None] # A list of all of the productions. The first
1321 # productions of that nonterminal.
1324 # productions.
1352 return len(self.Productions)
1355 return self.Productions[index]
1366 assert self.Productions == [None],"Must call set_precedence() before add_production()"
1441 pnumber = len(self.Productions)
1454 # Create a production and add it to the list of productions
1456 self.Productions.append(p)
1459 # Add to the global productions list
1475 start = self.Productions[1].name
1478 self.Productions[0] = Production(0,"S'",[start])
1505 mark_reachable_from( self.Productions[0].prod[0] )
1537 # Nonterminal n terminates iff any of its productions terminates.
1557 # Don't need to consider any more productions for this n.
1585 for p in self.Productions:
1611 # Returns a list of productions.
1732 start = self.Productions[1].name
1738 for p in self.Productions[1:]:
1765 # This function walks the list of productions and builds a complete set of the
1778 for p in self.Productions:
1787 # Precompute the list of productions immediately following
1860 productions = pickle.load(in_f)
1863 for p in productions:
1955 self.lr_productions = grammar.Productions # Copy of grammar Production array
2038 C = [ self.lr0_closure([self.grammar.Productions[0].lr_next]) ]
2097 for p in self.grammar.Productions[1:]:
2153 if state == 0 and N == self.grammar.Productions[0].prod[0]:
2317 # This function directly attaches the lookaheads to productions contained
2323 # Loop over productions in lookback
2363 Productions = self.grammar.Productions
2417 sprec,slevel = Productions[st_actionp[a].number].prec
2426 Productions[p.number].reduced += 1
2437 oldp = Productions[-r]
2438 pp = Productions[p.number]
2443 Productions[p.number].reduced += 1
2444 Productions[oldp.number].reduced -= 1
2454 Productions[p.number].reduced += 1
2475 rprec,rlevel = Productions[st_actionp[a].number].prec
2479 Productions[st_actionp[a].number].reduced -= 1
3118 # Add productions to the grammar
3157 # Print out all productions to the debug log
3162 for n,p in enumerate(grammar.Productions):