Module ImportFrom alias alias alias alias ImportFrom alias alias Assign NameStore TupleLoad Num Num Num Num Num Num Num Assign NameStore ListLoad Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr keyword NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Str ListLoad decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str decorator_list Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str With Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str decorator_list Call NameLoad decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Import alias With Call NameLoad NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Expr Call NameLoad Str Expr Call NameLoad NameLoad Expr Call NameLoad Expr Call NameLoad Str Expr Call NameLoad Call AttributeLoad NameLoad attr NameLoad keyword Num Expr Call NameLoad decorator_list If CompareEq NameLoad Str body Import alias Import alias Import alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call NameLoad Str For NameStore Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad Expr Call NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list decorator_list Assign NameStore Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword Num keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword NameLoad keyword AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str Assign NameStore Call AttributeLoad NameLoad attr Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr
N/A __future__ print_function division absolute_import unicode_literals grako.parsing graken Parser N/A __version__ N/A 2014 9 19 16 34 11 4 N/A __all__ N/A ExpressionParser ExpressionSemantics main ExpressionParser N/A Parser N/A __init__ N/A N/A self whitespace nameguard N/A None True kwargs N/A N/A N/A N/A N/A super ExpressionParser self __init__ whitespace whitespace nameguard nameguard kwargs N/A _arithmetic_expression_ N/A N/A self N/A N/A N/A N/A N/A self _test_ N/A N/A N/A self _check_eof N/A N/A graken _test_ N/A N/A self N/A N/A N/A N/A N/A self _or_test_ N/A N/A graken _or_test_ N/A N/A self N/A N/A N/A N/A N/A self _and_test_ block0 N/A N/A N/A N/A N/A N/A N/A self _token or N/A N/A N/A self _and_test_ N/A N/A N/A N/A self _closure block0 N/A N/A graken binary _and_test_ N/A N/A self N/A N/A N/A N/A N/A self _not_test_ block0 N/A N/A N/A N/A N/A N/A N/A self _token and N/A N/A N/A self _not_test_ N/A N/A N/A N/A self _closure block0 N/A N/A graken binary _not_test_ N/A N/A self N/A N/A N/A N/A N/A self _choice N/A N/A N/A N/A self _option N/A N/A N/A N/A self _token not N/A N/A N/A self _not_test_ N/A N/A N/A self _option N/A N/A N/A N/A self _comparison_ N/A N/A N/A self _error no available options N/A N/A graken unary _comparison_ N/A N/A self N/A N/A N/A N/A N/A self _or_expr_ block0 N/A N/A N/A N/A N/A N/A N/A self _comparison_operator_ N/A N/A N/A self _or_expr_ N/A N/A N/A N/A self _closure block0 N/A N/A graken binary _or_expr_ N/A N/A self N/A N/A N/A N/A N/A self _and_expr_ block0 N/A N/A N/A N/A N/A N/A N/A self _token | N/A N/A N/A self _and_expr_ N/A N/A N/A N/A self _closure block0 N/A N/A graken binary _and_expr_ N/A N/A self N/A N/A N/A N/A N/A self _shift_expr_ block0 N/A N/A N/A N/A N/A N/A N/A self _token & N/A N/A N/A self _shift_expr_ N/A N/A N/A N/A self _closure block0 N/A N/A graken binary _shift_expr_ N/A N/A self N/A N/A N/A N/A N/A self _arith_expr_ block0 N/A N/A N/A N/A N/A N/A N/A self _group N/A N/A N/A N/A self _choice N/A N/A N/A N/A self _option N/A N/A N/A N/A self _token << N/A N/A N/A self _option N/A N/A N/A N/A self _token >> N/A N/A N/A self _error expecting one of: << >> N/A N/A N/A self _arith_expr_ N/A N/A N/A N/A self _closure block0 N/A N/A graken binary _arith_expr_ N/A N/A self N/A N/A N/A N/A N/A self _term_ block0 N/A N/A N/A N/A N/A N/A N/A self _group N/A N/A N/A N/A self _choice N/A N/A N/A N/A self _option N/A N/A N/A N/A self _token + N/A N/A N/A self _option N/A N/A N/A N/A self _token - N/A N/A N/A self _error expecting one of: + - N/A N/A N/A self _term_ N/A N/A N/A N/A self _closure block0 N/A N/A graken binary _term_ N/A N/A self N/A N/A N/A N/A N/A self _factor_ block0 N/A N/A N/A N/A N/A N/A N/A self _group N/A N/A N/A N/A self _choice N/A N/A N/A N/A self _option N/A N/A N/A N/A self _token * N/A N/A N/A self _option N/A N/A N/A N/A self _token / N/A N/A N/A self _option N/A N/A N/A N/A self _token % N/A N/A N/A self _option N/A N/A N/A N/A self _token // N/A N/A N/A self _error expecting one of: % * / // N/A N/A N/A self _factor_ N/A N/A N/A N/A self _closure block0 N/A N/A graken binary _factor_ N/A N/A self N/A N/A N/A N/A N/A self _choice N/A N/A N/A N/A self _option N/A N/A N/A N/A self _group N/A N/A N/A N/A self _choice N/A N/A N/A N/A self _option N/A N/A N/A N/A self _token + N/A N/A N/A self _option N/A N/A N/A N/A self _token - N/A N/A N/A self _option N/A N/A N/A N/A self _token ~ N/A N/A N/A self _error expecting one of: + - ~ N/A N/A N/A self _factor_ N/A N/A N/A self _option N/A N/A N/A N/A self _power_ N/A N/A N/A self _error no available options N/A N/A graken unary _power_ N/A N/A self N/A N/A N/A N/A N/A self _atom_ N/A N/A N/A self _optional N/A N/A N/A N/A self _token ^ N/A N/A N/A self _factor_ N/A N/A graken _atom_ N/A N/A self N/A N/A N/A N/A N/A self _choice N/A N/A N/A N/A self _option N/A N/A N/A N/A self _NUMBER_ N/A N/A N/A self _option N/A N/A N/A N/A self _STRING_ N/A N/A N/A self _option N/A N/A N/A N/A self _function_ N/A N/A N/A self _option N/A N/A N/A N/A self _variable_ N/A N/A N/A self _option N/A N/A N/A N/A self _group N/A N/A N/A N/A self _token ( N/A N/A N/A self _test_ N/A N/A N/A self ast N/A @ N/A self last_node N/A N/A N/A self _token ) N/A N/A N/A self _error no available options N/A N/A graken _variable_ N/A N/A self N/A N/A N/A N/A N/A self _reference_ N/A N/A graken _function_ N/A N/A self N/A N/A N/A N/A N/A self _reference_ N/A N/A N/A self ast N/A ref N/A self last_node N/A N/A N/A self _token ( N/A N/A N/A self _optional N/A N/A N/A N/A self _arglist_ N/A N/A N/A self ast N/A args N/A self last_node N/A N/A N/A self _token ) N/A N/A N/A N/A self ast _define N/A ref args N/A N/A N/A graken _arglist_ N/A N/A self N/A N/A block0 N/A N/A N/A N/A N/A N/A N/A self _argument_ N/A N/A N/A N/A self ast setlist @ N/A self last_node N/A N/A N/A self _token , N/A N/A N/A N/A self _closure block0 N/A N/A N/A self _argument_ N/A N/A N/A N/A self ast setlist @ N/A self last_node N/A N/A graken _argument_ N/A N/A self N/A N/A N/A N/A N/A self _test_ N/A N/A graken _reference_ N/A N/A self N/A N/A block0 N/A N/A N/A N/A N/A N/A N/A self _NAME_ N/A N/A N/A N/A self ast setlist @ N/A self last_node N/A N/A N/A self _token . N/A N/A N/A N/A self _closure block0 N/A N/A N/A self _NAME_ N/A N/A N/A N/A self ast setlist @ N/A self last_node N/A N/A graken _NUMBER_ N/A N/A self N/A N/A N/A N/A N/A self _pattern [-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)? N/A N/A graken _STRING_ N/A N/A self N/A N/A N/A N/A N/A self _pattern '[^'\\\r\n]*(?:\\.[^'\\\r\n]*)*' N/A N/A graken _comparison_operator_ N/A N/A self N/A N/A N/A N/A N/A self _group N/A N/A N/A N/A self _choice N/A N/A N/A N/A self _option N/A N/A N/A N/A self _token == N/A N/A N/A self _option N/A N/A N/A N/A self _token != N/A N/A N/A self _option N/A N/A N/A N/A self _token < N/A N/A N/A self _option N/A N/A N/A N/A self _token <= N/A N/A N/A self _option N/A N/A N/A N/A self _token > N/A N/A N/A self _option N/A N/A N/A N/A self _token >= N/A N/A N/A self _option N/A N/A N/A N/A self _token in N/A N/A N/A self _option N/A N/A N/A N/A self _token is N/A N/A N/A self _error expecting one of: != < <= == > >= in is N/A N/A graken _NAME_ N/A N/A self N/A N/A N/A N/A N/A self _pattern \w+ N/A N/A graken N/A ExpressionSemantics N/A object N/A arithmetic_expression N/A N/A self ast N/A N/A N/A ast N/A test N/A N/A self ast N/A N/A N/A ast N/A or_test N/A N/A self ast N/A N/A N/A ast N/A and_test N/A N/A self ast N/A N/A N/A ast N/A not_test N/A N/A self ast N/A N/A N/A ast N/A comparison N/A N/A self ast N/A N/A N/A ast N/A or_expr N/A N/A self ast N/A N/A N/A ast N/A and_expr N/A N/A self ast N/A N/A N/A ast N/A shift_expr N/A N/A self ast N/A N/A N/A ast N/A arith_expr N/A N/A self ast N/A N/A N/A ast N/A term N/A N/A self ast N/A N/A N/A ast N/A factor N/A N/A self ast N/A N/A N/A ast N/A power N/A N/A self ast N/A N/A N/A ast N/A atom N/A N/A self ast N/A N/A N/A ast N/A variable N/A N/A self ast N/A N/A N/A ast N/A function N/A N/A self ast N/A N/A N/A ast N/A arglist N/A N/A self ast N/A N/A N/A ast N/A argument N/A N/A self ast N/A N/A N/A ast N/A reference N/A N/A self ast N/A N/A N/A ast N/A NUMBER N/A N/A self ast N/A N/A N/A ast N/A STRING N/A N/A self ast N/A N/A N/A ast N/A comparison_operator N/A N/A self ast N/A N/A N/A ast N/A NAME N/A N/A self ast N/A N/A N/A ast N/A N/A main N/A N/A filename startrule trace whitespace N/A False None N/A N/A json N/A N/A open filename f N/A N/A text N/A N/A f read N/A parser N/A ExpressionParser parseinfo False N/A ast N/A N/A parser parse text startrule filename filename trace trace whitespace whitespace N/A N/A print AST: N/A N/A print ast N/A N/A print N/A N/A print JSON: N/A N/A print N/A N/A json dumps ast indent 2 N/A N/A print N/A N/A N/A __name__ __main__ N/A N/A argparse N/A string N/A sys ListRules N/A N/A argparse Action N/A __call__ N/A N/A self parser namespace values option_string N/A N/A N/A N/A print Rules: N/A r N/A N/A ExpressionParser rule_list N/A N/A N/A print r N/A N/A print N/A N/A N/A sys exit 0 N/A N/A N/A parser N/A N/A argparse ArgumentParser description Simple parser for Expression. N/A N/A N/A parser add_argument -l --list action ListRules nargs 0 help list all rules and exit N/A N/A N/A parser add_argument -t --trace action store_true help output trace information N/A N/A N/A parser add_argument -w --whitespace type str default N/A string whitespace help whitespace specification N/A N/A N/A parser add_argument file metavar FILE help the input file to parse N/A N/A N/A parser add_argument startrule metavar STARTRULE help the start rule for parsing N/A args N/A N/A parser parse_args N/A N/A main N/A args file N/A args startrule trace N/A args trace whitespace N/A args whitespace