Back to index

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

List of all members.

Public Member Functions

def __init__
def __str__
def __repr__
def bind

Public Attributes

 name
 len
 func
 callable
 file
 line
 str

Detailed Description

Definition at line 1225 of file yacc.py.


Constructor & Destructor Documentation

def ply.yacc.MiniProduction.__init__ (   self,
  str,
  name,
  len,
  func,
  file,
  line 
)

Definition at line 1226 of file yacc.py.

01226 
01227     def __init__(self,str,name,len,func,file,line):
01228         self.name     = name
01229         self.len      = len
01230         self.func     = func
01231         self.callable = None
01232         self.file     = file
01233         self.line     = line
        self.str      = str

Member Function Documentation

Definition at line 1236 of file yacc.py.

01236 
01237     def __repr__(self):
01238         return "MiniProduction(%s)" % self.str

Definition at line 1234 of file yacc.py.

01234 
01235     def __str__(self):
        return self.str
def ply.yacc.MiniProduction.bind (   self,
  pdict 
)

Definition at line 1240 of file yacc.py.

01240 
01241     def bind(self,pdict):
01242         if self.func:
01243             self.callable = pdict[self.func]
01244 
01245 
01246 # -----------------------------------------------------------------------------
01247 # class LRItem
01248 #
01249 # This class represents a specific stage of parsing a production rule.  For
01250 # example: 
01251 #
01252 #       expr : expr . PLUS term 
01253 #
01254 # In the above, the "." represents the current location of the parse.  Here
01255 # basic attributes:
01256 #
01257 #       name       - Name of the production.  For example 'expr'
01258 #       prod       - A list of symbols on the right side ['expr','.', 'PLUS','term']
01259 #       number     - Production number.
01260 #
01261 #       lr_next      Next LR item. Example, if we are ' expr -> expr . PLUS term'
01262 #                    then lr_next refers to 'expr -> expr PLUS . term'
01263 #       lr_index   - LR item index (location of the ".") in the prod list.
01264 #       lookaheads - LALR lookahead symbols for this item
01265 #       len        - Length of the production (number of symbols on right hand side)
01266 #       lr_after    - List of all productions that immediately follow
01267 #       lr_before   - Grammar symbol immediately before
01268 # -----------------------------------------------------------------------------


Member Data Documentation

Definition at line 1230 of file yacc.py.

Definition at line 1231 of file yacc.py.

Definition at line 1229 of file yacc.py.

Definition at line 1228 of file yacc.py.

Definition at line 1232 of file yacc.py.

Definition at line 1227 of file yacc.py.

Definition at line 1233 of file yacc.py.


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