SPRAAK
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Structures | Functions
spr_pylib.capi.lex Namespace Reference

Data Structures

class  LexError
 Exception thrown when invalid token encountered and no default error handler is defined. More...
 
class  LexToken
 Token class. More...
 
class  Lexer
 

Functions

def lex
 
def runmain
 
def TOKEN
 

Function Documentation

def spr_pylib.capi.lex.lex (   module = None,
  object = None,
  debug = 0,
  optimize = 0,
  lextab = "lextab",
  reflags = 0,
  nowarn = 0 
)

lex(module)

Build all of the regular expression rules from definitions in the supplied module

def spr_pylib.capi.lex.runmain (   lexer = None,
  data = None 
)
def spr_pylib.capi.lex.TOKEN (   r)