▼ apg_py | All of the APG library, generator and pattern-matching files |
▼ api | The parser generator files |
__init__.py | |
api.py | An API for generating grammar objects from SABNF grammars |
rule_attributes.py | Compute the rule attributes for all rules |
rule_dependencies.py | Determine which rules each rule depends on and vice versa |
sabnf_grammar.py | |
scanner.py | Scans the SABNF source for invalid characters |
scanner_callbacks.py | All of the callback functions for the scanner parser's AST |
scanner_grammar.py | |
semantic.py | Semantic translation of the SABNF AST |
semantic_callbacks.py | All the semantic AST translation callback functions |
syntax.py | Parse the SABNF grammar for syntax errors |
syntax_callbacks.py | All the syntax parser's callback functions |
▼ exp | The pattern-matching files |
__init__.py | |
exp.py | ApgExp - a RegExp-like pattern matching engine |
▼ lib | The basic APG parsing library |
__init__.py | |
ast.py | A class for creating and translating the Abstract Syntax Tree (AST) |
backreferences.py | Back reference stack class |
identifiers.py | All of the APG numerical ids |
parser.py | The APG parser |
stats.py | Collects parser's node statistics |
trace.py | Displays a trace of the parse tree |
utilities.py | A few APG utility functions |
__init__.py | |
__main__.py | |
generator.py | |
docs | Documentation helper files for doxygen |
▼ examples | Examples of using all aspects of the parser, parser generator and pattern-matching engine |
▼ ast | All of the files for the AST demonstration |
__init__.py | |
ast_callbacks.py | The AST call back functions for the AST example |
main.py | Example of using the Abstract Syntax Tree (AST) |
parser_callbacks.py | The parser call back functions for the AST example |
▼ basics | All of the examples of basic parsing operations |
__init__.py | |
back_reference.py | Demonstrates two modes of back referencing |
look_ahead.py | Example of using the look behind operators & and ! |
look_behind.py | Demonstration of using the look behind operators |
main.py | Driver function for demonstrating Python APG basic operations |
parsing_basics.py | Simple construction of a grammar object and parser |
stats.py | Demonstrates how to display the parser's statistics |
substrings.py | Demonstrate parsing substrings |
trace.py | Demonstrates how to display a trace of the parser's path through the parse tree |
udts.py | Example of using User-Defined Terminals (UDTs) |
▼ exp | A large set of examples of using the pattern-matching engine |
__init__.py | |
ast_translate.py | Demonstrates using the AST for translation of the pattern matched results |
basic.py | Demonstrates simple matching and testing of patterns in a string |
csv.py | Demonstrates parsing comma separated values |
flags.py | Demonstrates using the pattern matching flags |
limits.py | Demonstrates placing limits on the node hits and parse tree depth |
main.py | Driver function for demonstrating a large set of pattern matching examples |
multiline.py | Demonstrates mimicking the multi-line mode flag of regex |
recursive.py | Demonstrates using recursive rules for matching nested pairs |
replace.py | Demonstrates use of the replace function |
rules.py | Demonstrates including or excluding specific pattern rules in the result |
split.py | Demonstrates the use of the split() function |
udts.py | Demonstrates using User-Defined Terminals (UDTs) |
▼ grammar_object | An example of saving a grammar object and using it at a future time |
__init__.py | |
abnf.py | |
main.py | The main function for the save and use grammar object demonstratons |
save.py | Demonstrates how to save a grammar object for future use |
use.py | Demonstrates how to use a saved a grammar object |
▼ ini_file | This director contains all the file for the ini file example |
__init__.py | |
ast_callbacks.py | The AST call back functions for the ini file class |
grammar.py | |
ini_file.py | The ini file class for parsing an ini file into section/key/values |
main.py | The driver function for the ini file demonstration |
parser_callbacks.py | The parser call back functions for the ini file class |