Package pysynphot :: Module spparser :: Class BaseParser
[hide private]
[frames] | no frames]

Class BaseParser

source code


Instance Methods [hide private]
 
__init__(self, ASTclass, start='top') source code
 
p_top(self, args)
top ::= expr top ::= FILELIST expr ::= expr + term expr ::= expr - term expr ::= term term ::= term * factor term ::= term / factor value ::= LPAREN expr RPAREN term ::= factor factor ::= unaryop value factor ::= value unaryop ::= + unaryop ::= - value ::= INTEGER value ::= FLOAT value ::= IDENTIFIER value ::= function_call function_call ::= IDENTIFIER LPAREN arglist RPAREN arglist ::= arglist , expr arglist ::= expr
source code
 
terminal(self, token) source code
 
nonterminal(self, type, args) source code

Inherited from spark.GenericASTBuilder: buildASTNode, preprocess

Inherited from spark.GenericParser: addRule, ambiguity, augment, buildState, buildTree, buildTree_r, collectRules, error, makeFIRST, parse, resolve, typestring

Class Variables [hide private]

Inherited from spark.GenericParser (private): _EOF, _START

Method Details [hide private]

__init__(self, ASTclass, start='top')
(Constructor)

source code 
Overrides: spark.GenericParser.__init__

terminal(self, token)

source code 
Overrides: spark.GenericASTBuilder.terminal

nonterminal(self, type, args)

source code 
Overrides: spark.GenericASTBuilder.nonterminal