Version 1.0
Copyright © 2022 Lowell D. Thomas
Python APG
 … an ABNF Parser Generator
Variables
examples.exp.basic Namespace Reference

Variables

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

Variable Documentation

◆ exp

examples.exp.basic.exp = ApgExp(pattern_ci)

Definition at line 29 of file basic.py.

◆ header

string examples.exp.basic.header = 'RESULT'

Definition at line 25 of file basic.py.

◆ input_lower

string examples.exp.basic.input_lower = '---abc==='

Definition at line 23 of file basic.py.

◆ input_upper

string examples.exp.basic.input_upper = '---ABC==='

Definition at line 24 of file basic.py.

◆ pattern_ci

string examples.exp.basic.pattern_ci = 'start = "abc"\n'

Definition at line 21 of file basic.py.

◆ pattern_cs

string examples.exp.basic.pattern_cs = 'start = %s"abc"\n'

Definition at line 22 of file basic.py.

◆ result

examples.exp.basic.result = exp.exec(input_lower)

Definition at line 30 of file basic.py.

◆ testno

int examples.exp.basic.testno = 0

Definition at line 26 of file basic.py.

◆ title

string examples.exp.basic.title
Initial value:
1 = '''This example will demonstrate the basic procedure
2 for matching a pattern in a string and simply
3 testing to see if the pattern exists.
4 Note that specifying case insensitive matching is done
5 with the SABNF pattern, not with flags, as in regex.
6 '''

Definition at line 12 of file basic.py.

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