Module Expr Str Import alias Import alias Import alias Import alias Import alias Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Str Assign NameStore Num Assign NameStore Call NameLoad NameLoad While CompareLt NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num If CompareEq NameLoad Str body If CompareEq NameLoad NameLoad body Break Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num If BoolOpAnd CompareLtE Str NameLoad CompareLtE NameLoad Str body If CompareLt NameLoad NameLoad body Assign NameStore NameLoad If CompareEq NameLoad Str body Return NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad While NameLoad body While CompareLt NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num If CompareIn NameLoad NameLoad body AugAssignAdd NameStore Num orelse If Call AttributeLoad NameLoad attr NameLoad body If CompareNotEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore Num Break If CompareEq NameLoad NameLoad body Break While CompareLt NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num If CompareIn NameLoad NameLoad body AugAssignAdd NameStore Num Break orelse If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Break Return CompareLtE NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad While CompareLt NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num If CompareEq NameLoad Str body AugAssignAdd NameStore Num AugAssignAdd NameStore Num orelse If BoolOpAnd CompareNotEq NameLoad Str CompareNotEq NameLoad Str body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Call NameLoad NameLoad While CompareLt NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num If CompareEq NameLoad Str body AugAssignAdd NameStore Num AugAssignAdd NameStore Num orelse If BoolOpAnd CompareNotEq NameLoad Str CompareNotEq NameLoad Str body If CompareEq NameLoad NameLoad body AugAssignAdd NameStore Num orelse If CompareEq NameLoad Str body Assign NameStore SubscriptLoad NameLoad Index NameLoad If BoolOpOr CompareGt Str NameLoad CompareGt NameLoad Str body AugAssignAdd NameStore Num orelse AugAssignAdd NameStore Num orelse AugAssignAdd NameStore Num If CompareLtE NameLoad NameLoad body Return NameLoad AugAssignSub NameStore NameLoad AugAssignSub NameStore NameLoad Return CompareLtE NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore BinOpAdd AttributeLoad NameLoad attr Num Assign AttributeStore NameLoad attr ListComp ListLoad comprehension NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Num Assign AttributeStore NameLoad attr Num If CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str Str Num body Expr Str AugAssignAdd AttributeStore NameLoad attr NameLoad Assign NameStore IfExp CompareEq NameLoad Num Str Str Print AttributeLoad NameLoad attr BinOpAdd BinOpAdd Str NameLoad Str NameLoad If CompareNotEq NameLoad Str body Print AttributeLoad NameLoad attr Str NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad Str body Return ListLoad If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore IfExp Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore BinOpAdd BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index NameLoad NameLoad AttributeLoad NameLoad attr orelse Assign NameStore BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq Call NameLoad NameLoad Num body Break Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore AttributeLoad NameLoad attr If BoolOpOr CompareEq NameLoad NameLoad CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr keyword NameLoad Continue Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue Assign NameStore SubscriptLoad NameLoad Index Num If BoolOpAnd CompareNotEq NameLoad AttributeLoad NameLoad attr CompareNotEq NameLoad AttributeLoad NameLoad attr body AugAssignAdd NameStore AttributeLoad NameLoad attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue If BoolOpAnd UnaryOpNot NameLoad UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Num If CompareEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue Assign NameStore ListLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore NameLoad While CompareEq NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If BoolOpOr CompareLt NameLoad Num CompareEq NameLoad Num body Break AugAssignAdd NameStore Num If CompareEq NameLoad Call NameLoad NameLoad body Break Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Index Num If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword NameLoad Continue If Call AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad orelse If Call AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad orelse If UnaryOpNot CompareIn NameLoad AttributeLoad NameLoad attr body If CompareEq NameLoad AttributeLoad NameLoad attr body Print AttributeLoad NameLoad attr Str Print AttributeLoad NameLoad attr Str NameLoad Str orelse Assign NameStore BinOpAdd Str Call NameLoad BinOpSub Call NameLoad NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad Continue orelse If BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index Num attr NameLoad orelse If BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse If BoolOpOr CompareEq NameLoad AttributeLoad NameLoad attr CompareEq NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str NameLoad Continue orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AugAssignAdd AttributeStore NameLoad attr Num If CompareGt AttributeLoad NameLoad attr Num body Print AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Str Print AttributeLoad NameLoad attr Str Raise AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Print Str If CompareGt Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Num body Print Str Expr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Num For NameStore AttributeLoad NameLoad attr body If CompareGt Call NameLoad NameLoad Num body If CompareEq NameLoad Num body Print Str orelse Print BinOpAdd BinOpAdd Str Call AttributeLoad NameLoad attr NameLoad Str Expr Call NameLoad NameLoad AugAssignAdd NameStore Num If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Print Str Expr Call NameLoad AttributeLoad NameLoad attr If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Print Str Expr Call NameLoad AttributeLoad NameLoad attr If CompareGt Call NameLoad AttributeLoad NameLoad attr Num body Print Str Expr Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore NameLoad body Print BinOpAdd Call AttributeLoad Str attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Str Call NameLoad SubscriptLoad NameLoad Index Num decorator_list If CompareEq NameLoad Str body Import alias Import alias Import alias Assign NameStore BinOpAdd AttributeLoad NameLoad attr Str Assign NameStore IfExp CompareGt Call NameLoad AttributeLoad NameLoad attr Num SubscriptLoad AttributeLoad NameLoad attr Index Num Str Assign NameStore BinOpAdd BinOpAdd NameLoad NameLoad Str Print Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotEq AttributeLoad NameLoad attr NameLoad body Print AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num Print Str Print Str NameLoad Str AttributeLoad NameLoad attr Str If CompareEq AttributeLoad NameLoad attr Num body Print AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Num Print Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad While NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If CompareLtE Call NameLoad NameLoad Num body Break Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Str attr Print Str Call NameLoad NameLoad BinOpAdd BinOpAdd Str Call NameLoad Call NameLoad NameLoad Str Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num While NameLoad body Assign NameStore Call AttributeLoad NameLoad attr If CompareEq NameLoad NameLoad body Break AugAssignAdd NameStore Num Print Call AttributeLoad Str attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str
N/A N/A 
for defining the rewriting of input in tokenization

this uses an extension of the macro substitutions described in
Kernighan and Plauger's "Software Tools"
 N/A sys N/A ellyChar N/A ellyWildcard N/A ellyException N/A definitionLine N/A special N/A ellyWildcard Separate _checkBindings N/A N/A left right N/A N/A N/A 
    check if all bindings have associated wildcards

    arguments:
        left  - pattern
        right - substitution

    returns:
        True if bindings are valid, False otherwise
     N/A mxb 0 N/A k 0 N/A l N/A len right N/A N/A k l N/A N/A c N/A right N/A k N/A k 1 N/A N/A c \ N/A N/A N/A k l N/A N/A N/A b N/A right N/A k N/A k 1 N/A N/A N/A 1 b N/A b 9 N/A N/A N/A mxb b N/A N/A mxb b N/A N/A mxb 0 N/A N/A True N/A m N/A int mxb N/A n 0 N/A k 0 N/A l N/A len left N/A True N/A N/A N/A k l N/A N/A c N/A left N/A k N/A k 1 N/A N/A c special N/A N/A n 1 N/A N/A N/A N/A ellyWildcard isWild c N/A N/A N/A c N/A ellyWildcard cEND N/A N/A n 1 N/A N/A N/A k l N/A N/A N/A N/A k l N/A N/A c N/A left N/A k N/A k 1 N/A N/A c special N/A N/A n 1 N/A N/A N/A N/A N/A N/A ellyWildcard isWild c N/A N/A N/A N/A m n N/A _checkExpansion N/A N/A left right N/A N/A N/A 
    check that substitution does not produce more non-space chars
    ignoring pattern wildcards and substitutions dependent on bindings

    arguments:
        left  - pattern
        right - substitution

    returns:
        True if substitution is not longer than original string, False otherwise
     N/A nh 0 N/A n 0 N/A k 0 N/A l N/A len left N/A N/A k l N/A N/A c N/A left N/A k N/A k 1 N/A N/A c - N/A N/A n 1 N/A nh 1 N/A N/A N/A N/A c N/A c _ N/A N/A N/A N/A N/A ellyWildcard isWild c N/A N/A n 1 N/A mh 0 N/A m 0 N/A k 0 N/A l N/A len right N/A N/A k l N/A N/A c N/A right N/A k N/A k 1 N/A N/A c - N/A N/A m 1 N/A mh 1 N/A N/A N/A N/A c N/A c _ N/A N/A N/A k l N/A N/A m 1 N/A N/A N/A c \ N/A N/A d N/A right N/A k N/A N/A N/A 1 d N/A d 9 N/A N/A m 1 N/A N/A k 1 N/A N/A m 1 N/A N/A m n N/A N/A True N/A n nh N/A m mh N/A N/A m n N/A MacroTable N/A object N/A N/A 
    table of macro substitutions

    attributes:
        count        - number of patterns altogether
        index        - for macro patterns starting with a text char
        letWx        -   starting with letter  wildcard
        digWx        -            with digit   wildcard
        anyWx        -            with general wildcard

        _errcount    - running input error count
     __init__ N/A N/A self defs nowarn N/A None False N/A N/A 
        initialize table for macro rules from file

        arguments:
            self   -
            defs   - EllyDefinitionReader for substitution rules
            nowarn - whether to turn warnings off

        exceptions:
            TableFailure on error
         N/A lim N/A N/A ellyChar Max 11 N/A N/A self index N/A N/A N/A i N/A range lim N/A N/A self letWx N/A N/A N/A self digWx N/A N/A N/A self anyWx N/A N/A N/A self count 0 N/A N/A self _errcount 0 N/A N/A defs None N/A N/A N/A N/A self _store defs nowarn N/A _err N/A N/A self s l d N/A malformed macro substitution 1 N/A N/A 
        for error reporting

        arguments:
            self -
            s    - error message
            l    - problem line
            d    - error count increment, 0 = warning only
         N/A N/A self _errcount d N/A m N/A N/A d 1 error warning N/A N/A sys stderr N/A N/A ** macro  m : s N/A N/A l N/A N/A N/A sys stderr *  at [ l ] N/A getRules N/A N/A self a N/A N/A N/A 
        get appropriate macros for text starting with specified first char

        arguments:
            self  -
            a     - first letter of current buffer contents (NOT space!)

        returns:
            a list of macro rules to try out
         N/A N/A a N/A N/A N/A N/A N/A N/A ellyChar isLetterOrDigit a N/A N/A k N/A N/A ellyChar toIndex a N/A ws N/A N/A N/A ellyChar isLetter a N/A self letWx N/A self digWx N/A ls N/A N/A N/A N/A self index N/A k ws N/A self anyWx N/A N/A ls N/A N/A N/A self index N/A 0 N/A self anyWx N/A ls N/A _store N/A N/A self defs nowarn N/A N/A N/A 
        put macro substitutions into table with indexing by first char of pattern

        arguments:
            self   -
            defs   - list of macro definition as strings
            nowarn - whether to turn warnings off

        exceptions:
            TableFailure on error
         N/A True N/A N/A l N/A N/A defs readline N/A N/A N/A len l 0 N/A N/A N/A dl N/A N/A definitionLine DefinitionLine l False N/A left N/A dl left N/A tail N/A dl tail N/A N/A N/A left None N/A tail None N/A N/A N/A N/A self _err l l N/A N/A pat N/A N/A ellyWildcard convert left N/A N/A pat None N/A N/A N/A N/A self _err bad wildcards l N/A N/A pe N/A pat N/A -1 N/A N/A N/A pe N/A ellyWildcard cALL N/A pe N/A ellyWildcard cEND N/A N/A pat N/A ellyWildcard cEND N/A N/A N/A _checkBindings pat tail N/A N/A N/A N/A self _err bad bindings in substitution l N/A N/A N/A N/A nowarn N/A N/A _checkExpansion pat tail N/A N/A N/A N/A self _err substitution longer than original string l 0 N/A N/A pat None N/A N/A N/A N/A self _err no pattern l N/A N/A r N/A pat tail N/A c N/A pat N/A 0 N/A p pat N/A N/A c N/A ellyWildcard cSOS N/A N/A k N/A N/A p find N/A ellyWildcard cEOS N/A N/A N/A k 0 N/A k 1 N/A N/A N/A k 1 N/A N/A k N/A len pat N/A N/A N/A m N/A N/A ellyChar toIndex N/A pat N/A 1 N/A N/A N/A N/A N/A self index N/A m append r N/A p N/A p N/A k N/A c N/A p N/A 0 N/A N/A c N/A ellyWildcard cSOS N/A N/A N/A N/A self _err l l N/A N/A N/A N/A ellyChar isLetterOrDigit c N/A N/A m N/A N/A ellyChar toIndex c N/A N/A N/A N/A N/A self index N/A m append r N/A N/A N/A N/A ellyChar isText c N/A N/A N/A N/A N/A N/A self index N/A 0 append r N/A N/A N/A N/A c N/A ellyWildcard Matching N/A N/A N/A c N/A ellyWildcard cEND N/A N/A N/A sys stderr ** macro warning: pattern can have empty match N/A N/A sys stderr *  at [ l ] N/A N/A dc N/A = N/A str N/A N/A ord c N/A ellyWildcard X N/A N/A N/A self _err bad wildcard code dc N/A N/A N/A N/A N/A c N/A ellyWildcard cANY N/A c N/A ellyWildcard cALL N/A N/A N/A N/A N/A self anyWx append r N/A N/A N/A c N/A ellyWildcard cCAN N/A N/A N/A N/A N/A N/A self index N/A 0 append r N/A N/A N/A N/A c N/A ellyWildcard cDIG N/A c N/A ellyWildcard cSDG N/A N/A N/A N/A N/A self digWx append r N/A N/A N/A c N/A ellyWildcard cSAN N/A N/A N/A N/A N/A self digWx append r N/A N/A N/A N/A self letWx append r N/A N/A N/A N/A c N/A ellyWildcard cSPC N/A c N/A ellyWildcard cEND N/A N/A N/A N/A self _err bad wildcard in context l N/A N/A N/A N/A N/A N/A self letWx append r N/A N/A self count 1 N/A N/A N/A self _errcount 0 N/A N/A N/A sys stderr ** N/A self _errcount macro errors in all N/A N/A sys stderr macro table definition FAILed N/A N/A ellyException TableFailure N/A dump N/A N/A self N/A N/A N/A 
        show contents of macro table

        arguments:
            self
         N/A macro substitutions indexed by first char or wildcard N/A N/A N/A len N/A N/A self index N/A 0 0 N/A N/A [.]: N/A N/A _dmpall N/A N/A self index N/A 0 N/A i 0 N/A slot N/A self index N/A N/A N/A N/A len slot 0 N/A N/A N/A i 0 N/A N/A [ ]: N/A N/A N/A N/A [ N/A N/A ellyChar toChar i ]: N/A N/A _dmpall slot N/A i 1 N/A N/A N/A len N/A self letWx 0 N/A N/A [LETTER]: N/A N/A _dmpall N/A self letWx N/A N/A N/A len N/A self digWx 0 N/A N/A [DIGIT]: N/A N/A _dmpall N/A self digWx N/A N/A N/A len N/A self anyWx 0 N/A N/A [ANY]: N/A N/A _dmpall N/A self anyWx N/A N/A _dmpall N/A N/A slot N/A N/A N/A 
    show all rules for one index slot

    arguments:
        slot  - index slot
     N/A r slot N/A N/A N/A N/A N/A  {:16s} format N/A N/A ellyWildcard deconvert N/A r N/A 0  ->  N/A list N/A r N/A 1 N/A N/A N/A __name__ __main__ N/A N/A substitutionBuffer N/A ellyDefinitionReader N/A ellyConfiguration N/A base N/A N/A ellyConfiguration baseSource / N/A name N/A N/A N/A len N/A sys argv 1 N/A N/A sys argv N/A 1 test N/A dfns N/A N/A base name .m.elly N/A source= dfns N/A inp N/A N/A ellyDefinitionReader EllyDefinitionReader dfns N/A N/A N/A inp error None N/A N/A N/A inp error N/A N/A N/A sys exit 1 N/A N/A N/A mtb N/A MacroTable inp N/A N/A N/A N/A ellyException TableFailure N/A N/A N/A N/A sys exit 1 N/A N/A mtb= mtb with N/A mtb count patterns N/A N/A N/A mtb count 0 N/A N/A N/A sys stderr empty table N/A N/A N/A sys exit 1 N/A N/A N/A N/A mtb dump N/A sb N/A N/A substitutionBuffer SubstitutionBuffer mtb N/A True N/A N/A N/A N/A N/A sys stdout write >  N/A st N/A N/A N/A sys stdin readline N/A N/A N/A len st 1 N/A N/A N/A ss N/A N/A N/A N/A st decode utf8 strip N/A TEXT= N/A list ss N/A N/A ( N/A str N/A len ss ) N/A N/A N/A sb clear N/A N/A N/A sb append ss N/A no 0 N/A True N/A N/A to N/A N/A sb getNext N/A N/A to None N/A N/A N/A no 1 N/A N/A N/A  >>{:2d} format no N/A unicode to N/A N/A N/A N/A sys stdout write