avocado.utils.external package

Submodules

avocado.utils.external.gdbmi_parser module

class avocado.utils.external.gdbmi_parser.AST(ast_type)

Bases: object

class avocado.utils.external.gdbmi_parser.GdbDynamicObject(dict_)

Bases: object

graft(dict_)
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.GdbMiRecord(record)

Bases: object

class avocado.utils.external.gdbmi_parser.GdbMiScanner(flags=0)

Bases: GdbMiScannerBase

t_token(s)

d+

class avocado.utils.external.gdbmi_parser.GdbMiScannerBase(flags=0)

Bases: GenericScanner

t_c_string(s)

".*?(?<![\\])"

t_default(s)

( . | n )+

t_nl(s)

n|rn

t_result_type(s)

*|+|^

t_stream_type(s)

@|&|~

t_string(s)

[w-]+

t_symbol(s)

,|{|\}|[|\]|=

t_whitespace(s)

[ tfv]+

tokenize(s)
class avocado.utils.external.gdbmi_parser.Token(token_type, value=None)

Bases: object

class avocado.utils.external.gdbmi_parser.session

Bases: object

parse(tokens)
process(data_input)
scan(data_input)

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)
exception avocado.utils.external.spark.GenericASTTraversalPruningException

Bases: Exception

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)
class avocado.utils.external.spark.GenericScanner(flags=0)

Bases: object

static error(s, pos)
makeRE(name)
reflect()
static t_default(s)

( . | n )+

tokenize(s)

Module contents