avocado.utils.external package¶
Submodules¶
avocado.utils.external.gdbmi_parser module¶
- class avocado.utils.external.gdbmi_parser.GdbMiInterpreter(ast)¶
Bases:
GenericASTTraversal
- static n_list(node)¶
- static n_record_list(node)¶
- static n_result(node)¶
- n_result_header(node)¶
- static n_result_list(node)¶
- static n_result_record(node)¶
- n_stream_record(node)¶
- static n_tuple(node)¶
- static n_value_list(node)¶
- class avocado.utils.external.gdbmi_parser.GdbMiParser¶
Bases:
GenericASTBuilder
- error(token, i=0, tokens=None)¶
- nonterminal(token_type, args)¶
- p_output(args)¶
output ::= record_list record_list ::= generic_record record_list ::= generic_record record_list generic_record ::= result_record generic_record ::= stream_record result_record ::= result_header result_list nl result_record ::= result_header nl result_header ::= token result_type class result_header ::= result_type class result_header ::= token = class result_header ::= = class stream_record ::= stream_type c_string nl result_list ::= , result result_list result_list ::= , result result_list ::= , tuple result ::= variable = value class ::= string variable ::= string value ::= const value ::= tuple value ::= list value_list ::= , value value_list ::= , value value_list const ::= c_string tuple ::= { } tuple ::= { result } tuple ::= { result result_list } list ::= [ ] list ::= [ value ] list ::= [ value value_list ] list ::= [ result ] list ::= [ result result_list ] list ::= { value } list ::= { value value_list }
- terminal(token)¶
- class avocado.utils.external.gdbmi_parser.GdbMiScanner(flags=0)¶
Bases:
GdbMiScannerBase
- t_token(s)¶
d+
avocado.utils.external.spark module¶
- class avocado.utils.external.spark.GenericASTBuilder(AST, start)¶
Bases:
GenericParser
- buildASTNode(args, lhs)¶
- nonterminal(token_type, args)¶
- preprocess(rule, func)¶
- static terminal(token)¶
- class avocado.utils.external.spark.GenericASTMatcher(start, ast)¶
Bases:
GenericParser
- static foundMatch(args, func)¶
- match(ast=None)¶
- match_r(node)¶
- preprocess(rule, func)¶
- resolve(input_list)¶
- class avocado.utils.external.spark.GenericASTTraversal(ast)¶
Bases:
object
- default(node)¶
- postorder(node=None)¶
- preorder(node=None)¶
- static prune()¶
- static typestring(node)¶
- class avocado.utils.external.spark.GenericParser(start)¶
Bases:
object
- add(input_set, item, i=None, predecessor=None, causal=None)¶
- addRule(doc, func, _preprocess=1)¶
- ambiguity(rules)¶
- augment(start)¶
- buildTree(nt, item, tokens, k)¶
- causal(key)¶
- collectRules()¶
- computeNull()¶
- deriveEpsilon(nt)¶
- static error(token)¶
- finalState(tokens)¶
- goto(state, sym)¶
- gotoST(state, st)¶
- gotoT(state, t)¶
- isnullable(sym)¶
- makeNewRules()¶
- makeSet(token, sets, i)¶
- makeSet_fast(token, sets, i)¶
- makeState(state, sym)¶
- makeState0()¶
- parse(tokens)¶
- predecessor(key, causal)¶
- static preprocess(rule, func)¶
- static resolve(input_list)¶
- skip(hs, pos=0)¶
- static typestring(token)¶