Version 1.0
Copyright © 2022 Lowell D. Thomas
Python APG
 … an ABNF Parser Generator
Namespaces | Variables
recursive.py File Reference

Demonstrates using recursive rules for matching nested pairs. More...

Go to the source code of this file.

Namespaces

 examples.exp.recursive
 

Variables

string examples.exp.recursive.title
 
string examples.exp.recursive.L = 'L = "("\n'
 
string examples.exp.recursive.R = 'R = ")"\n'
 
string examples.exp.recursive.PM = 'P = L P R / L R\n'
 
string examples.exp.recursive.PG = 'match = %^ P %$\n'
 
string examples.exp.recursive.PT = 'match = %^ P %$\n'
 
string examples.exp.recursive.header = 'RESULT'
 
int examples.exp.recursive.testno = 0
 
 examples.exp.recursive.exp = ApgExp(PM)
 
string examples.exp.recursive.input = '((()))'
 
 examples.exp.recursive.result = exp.exec(input)
 

Detailed Description

Demonstrates using recursive rules for matching nested pairs.

Definition in file recursive.py.

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