Public Member Functions | |
def | __init__ |
def | getIndent |
def | getRemaining |
def | getString |
def | peek |
def | read |
def | removeBlanks |
def | reset |
Public Attributes | |
depth | |
index | |
maxscan | |
rp | |
string |
class representing the string to parse
Definition at line 82 of file rule_parser.py.
def rocon_ebnf.rule_parser._Tokenizer.__init__ | ( | self, | |
string, | |||
rp | |||
) |
set default values for string
Definition at line 84 of file rule_parser.py.
def rocon_ebnf.rule_parser._Tokenizer.getIndent | ( | self, | |
_down, | |||
_str = '.' |
|||
) |
returns string of ... for debugging purposing
Definition at line 122 of file rule_parser.py.
def rocon_ebnf.rule_parser._Tokenizer.getRemaining | ( | self | ) |
returns the remaining part of string not parsed
Definition at line 108 of file rule_parser.py.
def rocon_ebnf.rule_parser._Tokenizer.getString | ( | self, | |
ptr | |||
) |
return the parsed substring (ptr is the start point)
Definition at line 105 of file rule_parser.py.
def rocon_ebnf.rule_parser._Tokenizer.peek | ( | self | ) |
peek current character in string, without consume it
Definition at line 91 of file rule_parser.py.
def rocon_ebnf.rule_parser._Tokenizer.read | ( | self | ) |
read current character, and increment cursor
Definition at line 99 of file rule_parser.py.
def rocon_ebnf.rule_parser._Tokenizer.removeBlanks | ( | self | ) |
removed blanks of string before parsing rule, terminal or regular character this function could be desactivated using rp.IGNORE_BLANKS
Definition at line 111 of file rule_parser.py.
def rocon_ebnf.rule_parser._Tokenizer.reset | ( | self, | |
ptr = 0 |
|||
) |
reset pointer when rule parsing is ko
Definition at line 119 of file rule_parser.py.
Definition at line 84 of file rule_parser.py.
Definition at line 84 of file rule_parser.py.
Definition at line 84 of file rule_parser.py.
Definition at line 84 of file rule_parser.py.
Definition at line 84 of file rule_parser.py.