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

Demonstrates parsing comma separated values. More...

Go to the source code of this file.

Namespaces

 examples.exp.csv
 

Variables

string examples.exp.csv.title
 
string examples.exp.csv.csv_value
 
string examples.exp.csv.csv_line
 
string examples.exp.csv.input = '''Ten Thousand,10000, 2710 ,,"10,000","It's ""10 Grand"", baby",10K'''
 
string examples.exp.csv.pat = 'PATTERN'
 
string examples.exp.csv.header = 'RESULT'
 
int examples.exp.csv.testno = 0
 
 examples.exp.csv.exp = ApgExp(csv_value, 'g')
 
 examples.exp.csv.result = exp.exec(input)
 
 examples.exp.csv.strip = result.match[1:-1]
 
 examples.exp.csv.match = utils.tuple_to_string(rule)
 

Detailed Description

Demonstrates parsing comma separated values.

Definition in file csv.py.

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