SPRAAK
Public Member Functions
spr_parser.TokenSeq Class Reference
+ Inheritance diagram for spr_parser.TokenSeq:
+ Collaboration diagram for spr_parser.TokenSeq:

Public Member Functions

def __init__ (self, name, tseq_in)
 items must have the following fields and/or methods next reference to next token type the main type str the text making up this token (optional method, BF: lower level) loc location of the (optional method, BF: lower level) src tuple (first-1,first,last) refering to the lower level More...
 
def __iter__ (self)
 reference to the dummy token before the first token More...
 
def get_next (self, tref)
 global note: the 'except' cases are usually the 'normal' cases (python weirdness) More...
 
def get_type (self, tref)
 
def get_str (self, tref)
 
def get_strs (tseq_in, tref, tref1, trefE)
 
def get_loc (self, tref)
 
def get_src (self, tref)
 

Constructor & Destructor Documentation

§ __init__()

def spr_parser.TokenSeq.__init__ (   self,
  name,
  tseq_in 
)

items must have the following fields and/or methods next reference to next token type the main type str the text making up this token (optional method, BF: lower level) loc location of the (optional method, BF: lower level) src tuple (first-1,first,last) refering to the lower level

Member Function Documentation

§ __iter__()

def spr_parser.TokenSeq.__iter__ (   self)

reference to the dummy token before the first token

§ get_next()

def spr_parser.TokenSeq.get_next (   self,
  tref 
)

global note: the 'except' cases are usually the 'normal' cases (python weirdness)

§ get_type()

def spr_parser.TokenSeq.get_type (   self,
  tref 
)

§ get_str()

def spr_parser.TokenSeq.get_str (   self,
  tref 
)

§ get_strs()

def spr_parser.TokenSeq.get_strs (   tseq_in,
  tref,
  tref1,
  trefE 
)

§ get_loc()

def spr_parser.TokenSeq.get_loc (   self,
  tref 
)

§ get_src()

def spr_parser.TokenSeq.get_src (   self,
  tref 
)