Public Member Functions | |
def | __init__ |
Public Attributes | |
code | |
definition | |
rp | |
Private Member Functions | |
def | _addcode |
def | _interpretCode |
def | _parse |
def | _scan |
Class containing definitions (rule, terminal,...)
Definition at line 220 of file rule_parser.py.
def rocon_ebnf.rule_parser._RpDefinition.__init__ | ( | self, | |
aDef, | |||
_rp, | |||
code = '' |
|||
) |
in init, we make: - scan the definitions to create relative objects such as Rule, Terminal, Regular. - acquire the future to be executed
Definition at line 222 of file rule_parser.py.
def rocon_ebnf.rule_parser._RpDefinition._addcode | ( | self, | |
code | |||
) | [private] |
add code statement to the current definition
Definition at line 231 of file rule_parser.py.
def rocon_ebnf.rule_parser._RpDefinition._interpretCode | ( | self | ) | [private] |
interpret the code defined for rule - variables defined in code must begin with '$' followed by the rule name
Definition at line 340 of file rule_parser.py.
def rocon_ebnf.rule_parser._RpDefinition._parse | ( | self, | |
_tk, | |||
mult = '' |
|||
) | [private] |
parse the definition: - loop on all items of definition - and call appropriate objet._parse (Rule,Terminal,Regular)
Definition at line 234 of file rule_parser.py.
def rocon_ebnf.rule_parser._RpDefinition._scan | ( | self, | |
adef | |||
) | [private] |
scan definition to create objects
Definition at line 276 of file rule_parser.py.
Definition at line 226 of file rule_parser.py.
Definition at line 226 of file rule_parser.py.
Definition at line 226 of file rule_parser.py.