Version 1.0
Copyright © 2022 Lowell D. Thomas
Python APG
 … an ABNF Parser Generator
Functions | Variables
apg_py.generator Namespace Reference

Functions

def get_source (file_names)
 Get the list of input file names, open them and concatenate the files. More...
 
def main ()
 

Variables

string desc
 
string ep
 

Function Documentation

◆ get_source()

def apg_py.generator.get_source (   file_names)

Get the list of input file names, open them and concatenate the files.

Construct the default output file name from the first input name.

Definition at line 36 of file generator.py.

◆ main()

def apg_py.generator.main ( )

Definition at line 80 of file generator.py.

Variable Documentation

◆ desc

string apg_py.generator.desc
Initial value:
1 = '''
2 This is Python APG - an ABNF Parser Generator.
3 It generates a grammar object from a superset of ABNF(SABNF)
4 suitable for use with the APG parser.
5 '''

Definition at line 66 of file generator.py.

◆ ep

string apg_py.generator.ep
Initial value:
1 = '''NOTES: 1) Multiple input files can be specified with by
2 comma-separated names.
3 The files will be concatenated in the order in which they appear.
4 2) The output file name is optional. If no output name is specified
5 the first input name will be stripped of its extension, if any,
6 and the extension ".py" added.
7 '''

Definition at line 71 of file generator.py.

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