grammar
Full name: ase2sprkkr.common.grammar
Module class hierarchy
![Inheritance diagram of ase2sprkkr.common.grammar.White](../_images/inheritance-a78fa199e2c8f2c9464ba1e9a66e0298a394202e.png)
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) |
|
Pattern for separating sections in an input file |
|
Grammar for separating sections in an input file |
|
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 |
|
Delimited list with already suppressed delimiter (or with a in-results-wanted one) |
Set the pyparsing newline handling and then restore to the original state |
|
|
Classes
|
Fix for whitechars in pp.White |