grammar
Full name: ase2sprkkr.common.grammar
Module class hierarchy
Description
Various pyparsing grammar elements and a few useful routines.
Module Attributes
Grammar for an optinal newline |
|
Grammar for a required newline |
|
Grammar for an end of file (ending whitespaces are allowed) |
|
Grammar for an optional quote |
Functions
|
Add check condition to the pyparsing ParseElement, that, if it failed, raise a parse exception with a given message. |
|
Add parse action to a given pyparsing ParseElemenet, that, if it raise an exception, fail with a given message |
|
Return a suppressed delimiter grammar named by its written form. |
|
Delimited list with already suppressed delimiter (or with a in-results-wanted one) |
Share SPRKKR parser defaults until the last grammar builder exits. |
|
|
|
|
Pattern for separating sections in an input file |
|
Classes
|
|
|
Skip to given regex |
|
|
|
|
|
Pyparsing ParseElementEnhance wrongly takes care about whitespaces, if there is nested Forward with whitespaces not already set. |
|
Fix for whitechars in pp.White |