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

Demonstrates using User-Defined Terminals (UDTs). More...

Go to the source code of this file.

Namespaces

 examples.exp.udts
 

Functions

def examples.exp.udts.u_digits (cb_data)
 A handwritten code snippet to recognize an IPv4 digit 0 - 255. More...
 

Variables

string examples.exp.udts.title
 
string examples.exp.udts.pattern = 'ipv4 = %^ u_digits %d46 u_digits %d46 u_digits %d46 u_digits %$\n'
 
string examples.exp.udts.header = 'RESULT'
 
int examples.exp.udts.testno = 0
 
 examples.exp.udts.exp = ApgExp(pattern)
 
string examples.exp.udts.input = '192.168.001.1'
 
 examples.exp.udts.result = exp.exec(input)
 

Detailed Description

Demonstrates using User-Defined Terminals (UDTs).

Definition in file udts.py.

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