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

Demonstration of using the look behind operators. More...

Go to the source code of this file.

Namespaces

 examples.basics.look_behind
 

Variables

string examples.basics.look_behind.title
 
 examples.basics.look_behind.api = Api()
 
string examples.basics.look_behind.syntax
 
string examples.basics.look_behind.input_string = 'first line\nsecond line'
 
 examples.basics.look_behind.grammar = api.generate(syntax)
 
 examples.basics.look_behind.parser = Parser(grammar)
 
 examples.basics.look_behind.result
 
 examples.basics.look_behind.end
 

Detailed Description

Demonstration of using the look behind operators.

A demonstration of the positive (&&) and negative(!!) look behind operators.
Note that UDT and back referencing operators are not allowed in look behind mode.
Included is a demonstration of using anchors, operators that match only the beginning and ending positions of the input string.

Definition in file look_behind.py.

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