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

Demonstrates simple matching and testing of patterns in a string. More...

Go to the source code of this file.

Namespaces

 examples.exp.basic
 

Variables

string examples.exp.basic.title
 
string examples.exp.basic.pattern_ci = 'start = "abc"\n'
 
string examples.exp.basic.pattern_cs = 'start = %s"abc"\n'
 
string examples.exp.basic.input_lower = '---abc==='
 
string examples.exp.basic.input_upper = '---ABC==='
 
string examples.exp.basic.header = 'RESULT'
 
int examples.exp.basic.testno = 0
 
 examples.exp.basic.exp = ApgExp(pattern_ci)
 
 examples.exp.basic.result = exp.exec(input_lower)
 

Detailed Description

Demonstrates simple matching and testing of patterns in a string.

Definition in file basic.py.

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