Version 1.0
Copyright © 2022 Lowell D. Thomas
Python APG
 … an ABNF Parser Generator
Public Member Functions | Public Attributes | List of all members
apg_py.api.api.Grammar Class Reference

Creates a grammar object which can be used by the APG library. More...

Public Member Functions

def __init__ (self, rules, udts, source)
 Grammar constructor. More...
 

Public Attributes

 has_bkru
 
 has_bkrr
 
 rules
 
 udts
 
 source
 

Detailed Description

Creates a grammar object which can be used by the APG library.

Definition at line 28 of file api.py.

Constructor & Destructor Documentation

◆ __init__()

def apg_py.api.api.Grammar.__init__ (   self,
  rules,
  udts,
  source 
)

Grammar constructor.

Parameters
rulesThe generated rules list from Api.generate().
udtsThe generated UDT list from Api.generate().
sourceThe original SABNF syntax source.

Definition at line 32 of file api.py.

Member Data Documentation

◆ has_bkrr

apg_py.api.api.Grammar.has_bkrr

Definition at line 39 of file api.py.

◆ has_bkru

apg_py.api.api.Grammar.has_bkru

Definition at line 38 of file api.py.

◆ rules

apg_py.api.api.Grammar.rules

Definition at line 56 of file api.py.

◆ source

apg_py.api.api.Grammar.source

Definition at line 58 of file api.py.

◆ udts

apg_py.api.api.Grammar.udts

Definition at line 57 of file api.py.


The documentation for this class was generated from the following file:
Python APG, Version 1.0, is licensed under the 2-Clause BSD License,
an Open Source Initiative Approved License.