Public Member Functions | Public Attributes
rocon_ebnf.rule_parser._Tokenizer Class Reference

List of all members.

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

Detailed Description

class representing the string to parse 

Definition at line 82 of file rule_parser.py.


Constructor & Destructor Documentation

def rocon_ebnf.rule_parser._Tokenizer.__init__ (   self,
  string,
  rp 
)
set default values for string 

Definition at line 84 of file rule_parser.py.


Member Function Documentation

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.

returns the remaining part of string not parsed 

Definition at line 108 of file rule_parser.py.

return the parsed substring (ptr is the start point) 

Definition at line 105 of file rule_parser.py.

peek current character in string, without consume it 

Definition at line 91 of file rule_parser.py.

read current character, and increment cursor 

Definition at line 99 of file rule_parser.py.

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.


Member Data Documentation

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.


The documentation for this class was generated from the following file:


rocon_ebnf
Author(s): LParis
autogenerated on Fri May 2 2014 10:35:48