Version 1.0
Copyright © 2022 Lowell D. Thomas
Python APG
 … an ABNF Parser Generator
ini_file Directory Reference

This director contains all the file for the ini file example.

More...

Files

file  __init__.py [code]
 
file  ast_callbacks.py [code]
 The AST call back functions for the ini file class.
 
file  grammar.py [code]
 
file  ini_file.py [code]
 The ini file class for parsing an ini file into section/key/values.
 
file  main.py [code]
 The driver function for the ini file demonstration.
 
file  parser_callbacks.py [code]
 The parser call back functions for the ini file class.
 

Detailed Description

This director contains all the file for the ini file example.

This is a demonstration of a substantial, "real life" application using the Python APG parser generator and the parser that it generates. A standard ini file format is defined in the file, examples/ini_file/grammar.abnf. The corresponding grammar object is in the file examples/ini_file/grammar.py and was generated with Python APG, apg.py, with the command

python3 apg.py –input examples/ini_file/grammar.abnf

The sample data parsed by this example is in the file examples/ini_file/data.

Python APG, Version 1.0, is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.