Classes | Functions | Variables
rocon_ebnf::rule_parser Namespace Reference

Classes

class  _RpDefinition
class  _RpRegular
class  _RpRule
class  _RpTerminal
class  _Tokenizer
class  RP

Functions

def _xlate
def compile
def match
def splitBrackets

Variables

string __version__ = '0.91'
list rule

Function Documentation

def rocon_ebnf.rule_parser._xlate (   str,
  reverse = False 
) [private]

Definition at line 621 of file rule_parser.py.

Definition at line 38 of file rule_parser.py.

def rocon_ebnf.rule_parser.match (   rule,
  thestr 
)
match the string against the rule 

Definition at line 43 of file rule_parser.py.

Split rules definitions 
    split along () , []

Definition at line 634 of file rule_parser.py.


Variable Documentation

Definition at line 31 of file rule_parser.py.

Initial value:
00001 ['init loc_range=[] ',
00002           'locate    ::=   range?  string  ',
00003           'range     ::=   "(" group+ ")"                   ',
00004           '            |    group                            ',
00005           'group     ::=   grp          ',
00006           'grp       ::=   nn "-" mm    @loc_range.append([$nn,$mm])',
00007           '            |   nn "." mm    @loc_range.append([$nn,($nn+$mm)])',
00008           '            |   nn           @loc_range.append([$nn,9999])',
00009           'nn        ::=  r"[0-9]"+                              ',
00010           'mm        ::=  r"[0-9]"+                              ',
00011           'string    ::=  sep char* sep  @loc_string="$char" ',
00012           'sep       ::=  r"\S"  ',
00013           'char      ::=  r"." ^sep' ]

Definition at line 674 of file rule_parser.py.



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