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

Public Member Functions

def __init__ (self, name, fname)
 The lowest level token sequence. More...
 
def get_next (self, tref)
 
def get_type (self, tref)
 
def get_str (self, tref)
 
def get_strs (self, tref, tref1, trefE)
 
def get_loc (self, tref)
 
def include (self, tref, fname)
 
- Public Member Functions inherited from spr_parser.TokenSeq
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.TokenSeqChr.__init__ (   self,
  name,
  fname 
)

The lowest level token sequence.

the character string

Parameters
selfNote: the tokens are 'virtual' (reference in a long string containing the complete content of the file)
nameNote: the tokens are 'virtual' (reference in a long string containing the complete content of the file)
fnameNote: the tokens are 'virtual' (reference in a long string containing the complete content of the file)

Member Function Documentation

§ get_next()

def spr_parser.TokenSeqChr.get_next (   self,
  tref 
)

§ get_type()

def spr_parser.TokenSeqChr.get_type (   self,
  tref 
)

§ get_str()

def spr_parser.TokenSeqChr.get_str (   self,
  tref 
)

§ get_strs()

def spr_parser.TokenSeqChr.get_strs (   self,
  tref,
  tref1,
  trefE 
)

§ get_loc()

def spr_parser.TokenSeqChr.get_loc (   self,
  tref 
)

§ include()

def spr_parser.TokenSeqChr.include (   self,
  tref,
  fname 
)