Trees | Indices | Help |
|
---|
|
object --+ | Lexer
Lexical analyzer Lexer rules: ----------- * Blank chars are usually ignored. Except from in quotes. * Quote can be one-line: "quoted value", or multiline: '''quoted value1, quoted value2, ''' * New-line char ends commented line if any. * Values can be provided as simple literals or quoted ones. * If value contains spaces or any other non-alphanumeric values it is better to quote it or escape it using escapechar. * Variable can take list of values, separated by comma * Escaping can only be used in rval position. Macros: ------ Macros are special internal variables that get expanded upon parsing. Macro definition is similar to variable definition, but macro char (default '&') is prepended to var name: ¯o = value var = ¯o
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
TOKEN_IDT = 0
|
|||
TOKEN_MACRO = 1
|
|
|||
Inherited from |
|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
Scan input for lexemes and return to parser
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 16 01:51:57 2010 | http://epydoc.sourceforge.net |