Back to index

enigmail  1.4.3
Public Member Functions | Public Attributes
ply.yacc.LRItem Class Reference

List of all members.

Public Member Functions

def __init__
def __str__
def __repr__

Public Attributes

 name
 prod
 number
 lr_index
 lookaheads
 len
 usyms

Detailed Description

Definition at line 1269 of file yacc.py.


Constructor & Destructor Documentation

def ply.yacc.LRItem.__init__ (   self,
  p,
  n 
)

Definition at line 1270 of file yacc.py.

01270 
01271     def __init__(self,p,n):
01272         self.name       = p.name
01273         self.prod       = list(p.prod)
01274         self.number     = p.number
01275         self.lr_index   = n
01276         self.lookaheads = { }
01277         self.prod.insert(n,".")
01278         self.prod       = tuple(self.prod)
01279         self.len        = len(self.prod)
01280         self.usyms      = p.usyms


Member Function Documentation

def ply.yacc.LRItem.__repr__ (   self)

Definition at line 1288 of file yacc.py.

01288 
01289     def __repr__(self):
01290         return "LRItem("+str(self)+")"
01291 
01292 # -----------------------------------------------------------------------------
01293 # rightmost_terminal()
01294 #
01295 # Return the rightmost terminal from a list of symbols.  Used in add_production()
# -----------------------------------------------------------------------------
def ply.yacc.LRItem.__str__ (   self)

Definition at line 1281 of file yacc.py.

01281 
01282     def __str__(self):
01283         if self.prod:
01284             s = "%s -> %s" % (self.name," ".join(self.prod))
01285         else:
01286             s = "%s -> <empty>" % self.name
01287         return s


Member Data Documentation

Definition at line 1278 of file yacc.py.

Definition at line 1275 of file yacc.py.

Definition at line 1274 of file yacc.py.

Definition at line 1271 of file yacc.py.

Definition at line 1273 of file yacc.py.

Definition at line 1272 of file yacc.py.

Definition at line 1279 of file yacc.py.


The documentation for this class was generated from the following file: