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

Public Member Functions

def __init__ (self, name, nstate)
 
def add_arc (self, isrcs, symbs, idst, actions=None)
 
def relink_remap (self)
 
def dotify (self, action_map, fdout=sys . stdout)
 

Constructor & Destructor Documentation

§ __init__()

def spr_parser.FST.__init__ (   self,
  name,
  nstate 
)

Member Function Documentation

§ add_arc()

def spr_parser.FST.add_arc (   self,
  isrcs,
  symbs,
  idst,
  actions = None 
)

§ relink_remap()

def spr_parser.FST.relink_remap (   self)
Parameters
selfsince class based symbols are only used if there is no direct match,

§ dotify()

def spr_parser.FST.dotify (   self,
  action_map,
  fdout = sys . stdout 
)
Parameters
selfoutput the FST in dot format
action_mapoutput the FST in dot format
fdoutoutput the FST in dot format