├── trunk └── src │ ├── test │ ├── __init__.py │ ├── parsefiletest_input_file.txt │ └── karthik.ini │ ├── examples │ ├── __init__.py │ ├── greeting.py │ ├── scanYahoo.py │ ├── greetingInGreek.py │ ├── groupUsingListAllMatches.py │ ├── greetingInKorean.py │ ├── matchPreviousDemo.py │ ├── nested.py │ ├── makeHTMLTagExample.py │ └── commasep.py │ ├── setup.cfg │ ├── HowToUsePyparsing.txt │ ├── pyparsingClassDiagram.JPG │ ├── pyparsingClassDiagram.PNG │ ├── genEpydoc.bat │ ├── MANIFEST.in_src │ ├── MANIFEST.in_bdist │ └── update_pyparsing_timestamp.py ├── tags ├── pyparsing_2.0.2 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ ├── commasep.py │ │ └── makeHTMLTagExample.py │ │ ├── CHANGES │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ └── MANIFEST.in_bdist ├── pyparsing_2.0.3 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ ├── commasep.py │ │ └── makeHTMLTagExample.py │ │ ├── CHANGES │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ └── MANIFEST.in_bdist ├── pyparsing_2.0.4 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ ├── commasep.py │ │ └── makeHTMLTagExample.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ └── MANIFEST.in_bdist ├── pyparsing_2.0.5 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ ├── commasep.py │ │ └── makeHTMLTagExample.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ └── MANIFEST.in_bdist ├── pyparsing_2.0.6 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ ├── commasep.py │ │ └── makeHTMLTagExample.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ └── MANIFEST.in_bdist ├── pyparsing_2.0.7 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ └── commasep.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ └── MANIFEST.in_bdist ├── pyparsing_2.1.0 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ └── commasep.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ └── MANIFEST.in_bdist ├── pyparsing_2.1.1 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ └── commasep.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.1.10 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ ├── parsefiletest_input_file.txt │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── greeting.py │ │ ├── scanYahoo.py │ │ ├── greetingInGreek.py │ │ ├── groupUsingListAllMatches.py │ │ ├── greetingInKorean.py │ │ ├── matchPreviousDemo.py │ │ └── nested.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.1.2 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ └── commasep.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.1.3 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ └── commasep.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.1.4 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ └── commasep.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.1.5 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ ├── parsefiletest_input_file.txt │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ └── commasep.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.1.6 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ ├── parsefiletest_input_file.txt │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── holaMundo.py │ │ ├── greeting.py │ │ ├── greetingInGreek.py │ │ ├── scanYahoo.py │ │ ├── greetingInKorean.py │ │ ├── groupUsingListAllMatches.py │ │ ├── matchPreviousDemo.py │ │ ├── nested.py │ │ └── commasep.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.1.7 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ ├── parsefiletest_input_file.txt │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── greeting.py │ │ ├── scanYahoo.py │ │ ├── greetingInGreek.py │ │ ├── groupUsingListAllMatches.py │ │ ├── greetingInKorean.py │ │ ├── matchPreviousDemo.py │ │ └── nested.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.1.8 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ ├── parsefiletest_input_file.txt │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── greeting.py │ │ ├── scanYahoo.py │ │ ├── greetingInGreek.py │ │ ├── groupUsingListAllMatches.py │ │ ├── greetingInKorean.py │ │ ├── matchPreviousDemo.py │ │ └── nested.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.1.9 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ ├── parsefiletest_input_file.txt │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── greeting.py │ │ ├── scanYahoo.py │ │ ├── greetingInGreek.py │ │ ├── groupUsingListAllMatches.py │ │ ├── greetingInKorean.py │ │ ├── matchPreviousDemo.py │ │ └── nested.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_2.2.0 │ └── src │ │ ├── test │ │ ├── __init__.py │ │ ├── parsefiletest_input_file.txt │ │ └── karthik.ini │ │ ├── examples │ │ ├── __init__.py │ │ ├── greeting.py │ │ ├── scanYahoo.py │ │ ├── greetingInGreek.py │ │ ├── groupUsingListAllMatches.py │ │ ├── greetingInKorean.py │ │ ├── matchPreviousDemo.py │ │ └── nested.py │ │ ├── setup.cfg │ │ ├── HowToUsePyparsing.txt │ │ ├── pyparsingClassDiagram.JPG │ │ ├── pyparsingClassDiagram.PNG │ │ ├── genEpydoc.bat │ │ ├── MANIFEST.in_src │ │ ├── MANIFEST.in_bdist │ │ └── update_pyparsing_timestamp.py ├── pyparsing_1.5.2 │ ├── CHANGES │ ├── HowToUsePyparsing.txt │ ├── parsingClassDiagram.PNG │ ├── pyparsingClassDiagram.JPG │ ├── pyparsingClassDiagram.PNG │ └── MANIFEST.in ├── pyparsing_1.5.3 │ ├── CHANGES │ ├── HowToUsePyparsing.txt │ ├── pyparsingClassDiagram.JPG │ ├── pyparsingClassDiagram.PNG │ ├── MANIFEST.in │ ├── MANIFEST.in_bdist │ ├── MANIFEST.in_src │ └── makeRelease.bat ├── pyparsing_1.5.4 │ ├── CHANGES │ ├── HowToUsePyparsing.txt │ ├── pyparsingClassDiagram.JPG │ ├── pyparsingClassDiagram.PNG │ ├── MANIFEST.in │ ├── MANIFEST.in_bdist │ ├── MANIFEST.in_src │ └── makeRelease.bat ├── pyparsing_1.5.5 │ ├── CHANGES │ ├── HowToUsePyparsing.txt │ ├── pyparsingClassDiagram.JPG │ ├── pyparsingClassDiagram.PNG │ ├── MANIFEST.in │ ├── MANIFEST.in_bdist │ ├── MANIFEST.in_src │ └── makeRelease.bat └── pyparsing_1.5.6 │ ├── CHANGES │ ├── HowToUsePyparsing.txt │ ├── pyparsingClassDiagram.JPG │ ├── pyparsingClassDiagram.PNG │ ├── MANIFEST.in │ ├── MANIFEST.in_bdist │ ├── MANIFEST.in_src │ └── makeRelease.bat └── branches └── pyparsing_1.5.x └── src ├── CHANGES ├── examples ├── pgn.pyc ├── fourFn.pyc ├── holaMundo.py ├── mozillaCalendarParser.py ├── greeting.py ├── scanYahoo.py ├── greetingInGreek.py ├── greetingInKorean.py ├── groupUsingListAllMatches.py ├── nested.py ├── matchPreviousDemo.py ├── commasep.py └── makeHTMLTagExample.py ├── HowToUsePyparsing.txt ├── genEpydoc.bat ├── pyparsingClassDiagram.JPG ├── pyparsingClassDiagram.PNG ├── MANIFEST.in_bdist ├── MANIFEST.in_src └── makeRelease.bat /trunk/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /trunk/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/test/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/examples/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /trunk/src/test/parsefiletest_input_file.txt: -------------------------------------------------------------------------------- 1 | 123 456 789 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/test/parsefiletest_input_file.txt: -------------------------------------------------------------------------------- 1 | 123 456 789 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/test/parsefiletest_input_file.txt: -------------------------------------------------------------------------------- 1 | 123 456 789 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/test/parsefiletest_input_file.txt: -------------------------------------------------------------------------------- 1 | 123 456 789 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/test/parsefiletest_input_file.txt: -------------------------------------------------------------------------------- 1 | 123 456 789 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/test/parsefiletest_input_file.txt: -------------------------------------------------------------------------------- 1 | 123 456 789 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/test/parsefiletest_input_file.txt: -------------------------------------------------------------------------------- 1 | 123 456 789 -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/test/parsefiletest_input_file.txt: -------------------------------------------------------------------------------- 1 | 123 456 789 -------------------------------------------------------------------------------- /trunk/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.2/CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.2/CHANGES -------------------------------------------------------------------------------- /tags/pyparsing_1.5.3/CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.3/CHANGES -------------------------------------------------------------------------------- /tags/pyparsing_1.5.4/CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.4/CHANGES -------------------------------------------------------------------------------- /tags/pyparsing_1.5.5/CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.5/CHANGES -------------------------------------------------------------------------------- /tags/pyparsing_1.5.6/CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.6/CHANGES -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/setup.cfg: -------------------------------------------------------------------------------- 1 | [bdist_wheel] 2 | universal = 1 3 | 4 | [wheel] 5 | universal = 1 6 | -------------------------------------------------------------------------------- /trunk/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/trunk/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.2/src/CHANGES -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.3/src/CHANGES -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/CHANGES: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/branches/pyparsing_1.5.x/src/CHANGES -------------------------------------------------------------------------------- /trunk/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/trunk/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /trunk/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/trunk/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.2/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.2/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_1.5.3/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.3/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_1.5.4/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.4/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_1.5.5/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.5/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_1.5.6/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.6/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/pgn.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/branches/pyparsing_1.5.x/src/examples/pgn.pyc -------------------------------------------------------------------------------- /tags/pyparsing_1.5.2/parsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.2/parsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.2/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.2/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.2/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.2/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.3/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.3/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.3/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.3/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.4/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.4/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.4/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.4/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.5/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.5/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.5/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.5/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.6/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.6/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_1.5.6/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_1.5.6/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.2/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.2/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.3/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.3/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.4/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.4/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.5/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.5/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.6/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.6/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.7/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.7/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.0/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.0/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.1/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.1/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.2/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.2/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.3/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.3/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.4/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.4/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.5/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.5/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.6/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.6/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.7/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.8/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.9/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.2.0/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/fourFn.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/branches/pyparsing_1.5.x/src/examples/fourFn.pyc -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.10/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/HowToUsePyparsing.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/branches/pyparsing_1.5.x/src/HowToUsePyparsing.txt -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/holaMundo.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/branches/pyparsing_1.5.x/src/examples/holaMundo.py -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.2/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.2/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.3/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.3/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.4/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.4/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.5/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.5/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.6/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.6/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.7/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.0.7/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.0/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.0/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.1/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.1/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.10/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.10/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.2/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.2/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.3/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.3/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.4/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.4/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.5/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.5/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.6/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.6/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.7/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.7/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.8/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.8/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.9/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.1.9/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.2.0/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/tags/pyparsing_2.2.0/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | python c:\python26\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 2 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/pyparsingClassDiagram.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/branches/pyparsing_1.5.x/src/pyparsingClassDiagram.JPG -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/pyparsingClassDiagram.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/branches/pyparsing_1.5.x/src/pyparsingClassDiagram.PNG -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/mozillaCalendarParser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/svn2github/pyparsing/HEAD/branches/pyparsing_1.5.x/src/examples/mozillaCalendarParser.py -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python26\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python26\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python26\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python26\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python26\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python26\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y .\sourceforge\svn\trunk\src\pyparsing.py . 2 | python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /trunk/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y ..\sourceforge\svn\trunk\src\pyparsing.py . 2 | c:\python27\python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y ..\sourceforge\svn\trunk\src\pyparsing.py . 2 | c:\python27\python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y ..\sourceforge\svn\trunk\src\pyparsing.py . 2 | c:\python27\python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y ..\sourceforge\svn\trunk\src\pyparsing.py . 2 | c:\python27\python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y ..\sourceforge\svn\trunk\src\pyparsing.py . 2 | c:\python27\python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y ..\sourceforge\svn\trunk\src\pyparsing.py . 2 | c:\python27\python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/genEpydoc.bat: -------------------------------------------------------------------------------- 1 | xcopy /y ..\sourceforge\svn\trunk\src\pyparsing.py . 2 | c:\python27\python c:\python27\scripts\epydoc -v --name pyparsing -o htmldoc --inheritance listed --no-private pyparsing.py 3 | -------------------------------------------------------------------------------- /trunk/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /trunk/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.2/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.3/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.4/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.5/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.6/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.3/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.4/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.5/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.6/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/MANIFEST.in_bdist: -------------------------------------------------------------------------------- 1 | include pyparsing.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.3/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing_py2.py pyparsing_py3.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.4/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing_py2.py pyparsing_py3.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.5/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing_py2.py pyparsing_py3.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.6/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing_py2.py pyparsing_py3.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/MANIFEST.in_src: -------------------------------------------------------------------------------- 1 | include pyparsing_py2.py pyparsing_py3.py 2 | include HowToUsePyparsing.html pyparsingClassDiagram.* 3 | include README CHANGES LICENSE 4 | include examples/*.py examples/Setup.ini examples/*.dfm examples/*.ics examples/*.html 5 | include htmldoc/*.* 6 | include docs/*.* 7 | include robots.txt 8 | -------------------------------------------------------------------------------- /trunk/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print hello, "->", greet.parseString( hello ) 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/examples/greeting.py: -------------------------------------------------------------------------------- 1 | # greeting.py 2 | # 3 | # Demonstration of the pyparsing module, on the prototypical "Hello, World!" 4 | # example 5 | # 6 | # Copyright 2003, by Paul McGuire 7 | # 8 | from pyparsing import Word, alphas 9 | 10 | # define grammar 11 | greet = Word( alphas ) + "," + Word( alphas ) + "!" 12 | 13 | # input string 14 | hello = "Hello, World!" 15 | 16 | # parse input string 17 | print(hello, "->", greet.parseString( hello )) 18 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib 3 | 4 | serverListPage = urllib.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print toks.link, "->", toks.startA.href -------------------------------------------------------------------------------- /trunk/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/test/karthik.ini: -------------------------------------------------------------------------------- 1 | [users] 2 | source_dir = '/home/karthik/Projects/python' 3 | data_dir = '/home/karthik/Projects/data' 4 | result_dir = '/home/karthik/Projects/Results' 5 | param_file = $result_dir/param_file 6 | res_file = $result_dir/result_file 7 | comment = 'this is a comment' 8 | ; a line starting with ';' is a comment 9 | K = 8 10 | simulate_K = 0 11 | N = 4000 12 | mod_scheme = 'QPSK' 13 | 14 | Na = K+2 -------------------------------------------------------------------------------- /trunk/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 11 | greet = Word(alphas) + ',' + Word(alphas) + '!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print(greet.parseString( hello )) 18 | 19 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/examples/scanYahoo.py: -------------------------------------------------------------------------------- 1 | from pyparsing import makeHTMLTags,SkipTo,htmlComment 2 | import urllib.request, urllib.parse, urllib.error 3 | 4 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 5 | htmlText = serverListPage.read() 6 | serverListPage.close() 7 | 8 | aStart,aEnd = makeHTMLTags("A") 9 | 10 | link = aStart + SkipTo(aEnd).setResultsName("link") + aEnd 11 | link.ignore(htmlComment) 12 | 13 | for toks,start,end in link.scanString(htmlText): 14 | print(toks.link, "->", toks.startA.href) -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word 8 | 9 | # define grammar 10 | alphas = u''.join(unichr(x) for x in xrange(0x386, 0x3ce)) 11 | greet = Word(alphas) + u',' + Word(alphas) + u'!' 12 | 13 | # input string 14 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 15 | 16 | # parse input string 17 | print greet.parseString( hello ) 18 | 19 | -------------------------------------------------------------------------------- /trunk/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word 10 | 11 | # define grammar 12 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 13 | greet = Word(alphas) + ',' + Word(alphas) + '!' 14 | 15 | # input string 16 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /trunk/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word 10 | 11 | # define grammar 12 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 13 | greet = Word(alphas) + ',' + Word(alphas) + '!' 14 | 15 | # input string 16 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word 10 | 11 | # define grammar 12 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 13 | greet = Word(alphas) + ',' + Word(alphas) + '!' 14 | 15 | # input string 16 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word 10 | 11 | # define grammar 12 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 13 | greet = Word(alphas) + ',' + Word(alphas) + '!' 14 | 15 | # input string 16 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word 10 | 11 | # define grammar 12 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 13 | greet = Word(alphas) + ',' + Word(alphas) + '!' 14 | 15 | # input string 16 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/examples/greetingInGreek.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInGreek.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word 10 | 11 | # define grammar 12 | alphas = ''.join(chr(x) for x in range(0x386, 0x3ce)) 13 | greet = Word(alphas) + ',' + Word(alphas) + '!' 14 | 15 | # input string 16 | hello = "Καλημέρα, κόσμε!".decode('utf-8') 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/update_pyparsing_timestamp.py: -------------------------------------------------------------------------------- 1 | from pyparsing import quotedString 2 | from datetime import datetime 3 | 4 | nw = datetime.utcnow() 5 | nowstring = '"%s"' % (nw.strftime("%d %b %Y %X")[:-3] + " UTC") 6 | print (nowstring) 7 | 8 | quoted_time = quotedString() 9 | quoted_time.setParseAction(lambda: nowstring) 10 | 11 | version_time = "__versionTime__ = " + quoted_time 12 | with open('pyparsing.py') as oldpp: 13 | new_code = version_time.transformString(oldpp.read()) 14 | 15 | with open('pyparsing.py','w') as newpp: 16 | newpp.write(new_code) 17 | 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print(greet.parseString( hello )) 20 | 21 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | from pyparsing import Word, srange 8 | 9 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 10 | koreanWord = Word(koreanChars,min=2) 11 | 12 | # define grammar 13 | greet = koreanWord + "," + koreanWord + "!" 14 | 15 | # input string 16 | hello = u'\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 17 | 18 | # parse input string 19 | print greet.parseString( hello ) 20 | 21 | -------------------------------------------------------------------------------- /trunk/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | # Copyright 2004-2016, by Paul McGuire 9 | # 10 | from pyparsing import Word, ZeroOrMore, nums 11 | 12 | aExpr = Word("A", nums) 13 | bExpr = Word("B", nums) 14 | cExpr = Word("C", nums) 15 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 16 | 17 | grammar.runTests("A1 B1 A2 C1 B2 A3") 18 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print results.dump() 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | from pyparsing import Word, ZeroOrMore, nums 9 | 10 | aExpr = Word("A", nums) 11 | bExpr = Word("B", nums) 12 | cExpr = Word("C", nums) 13 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 14 | 15 | results = grammar.parseString("A1 B1 A2 C1 B2 A3") 16 | print(results.dump()) 17 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | # Copyright 2004-2016, by Paul McGuire 9 | # 10 | from pyparsing import Word, ZeroOrMore, nums 11 | 12 | aExpr = Word("A", nums) 13 | bExpr = Word("B", nums) 14 | cExpr = Word("C", nums) 15 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 16 | 17 | grammar.runTests("A1 B1 A2 C1 B2 A3") 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | # Copyright 2004-2016, by Paul McGuire 9 | # 10 | from pyparsing import Word, ZeroOrMore, nums 11 | 12 | aExpr = Word("A", nums) 13 | bExpr = Word("B", nums) 14 | cExpr = Word("C", nums) 15 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 16 | 17 | grammar.runTests("A1 B1 A2 C1 B2 A3") 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | # Copyright 2004-2016, by Paul McGuire 9 | # 10 | from pyparsing import Word, ZeroOrMore, nums 11 | 12 | aExpr = Word("A", nums) 13 | bExpr = Word("B", nums) 14 | cExpr = Word("C", nums) 15 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 16 | 17 | grammar.runTests("A1 B1 A2 C1 B2 A3") 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | # Copyright 2004-2016, by Paul McGuire 9 | # 10 | from pyparsing import Word, ZeroOrMore, nums 11 | 12 | aExpr = Word("A", nums) 13 | bExpr = Word("B", nums) 14 | cExpr = Word("C", nums) 15 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 16 | 17 | grammar.runTests("A1 B1 A2 C1 B2 A3") 18 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/examples/groupUsingListAllMatches.py: -------------------------------------------------------------------------------- 1 | # 2 | # A simple example showing the use of the implied listAllMatches=True for 3 | # results names with a trailing '*' character. 4 | # 5 | # This example performs work similar to itertools.groupby, but without 6 | # having to sort the input first. 7 | # 8 | # Copyright 2004-2016, by Paul McGuire 9 | # 10 | from pyparsing import Word, ZeroOrMore, nums 11 | 12 | aExpr = Word("A", nums) 13 | bExpr = Word("B", nums) 14 | cExpr = Word("C", nums) 15 | grammar = ZeroOrMore(aExpr("A*") | bExpr("B*") | cExpr("C*")) 16 | 17 | grammar.runTests("A1 B1 A2 C1 B2 A3") 18 | -------------------------------------------------------------------------------- /trunk/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word, srange 10 | 11 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 12 | koreanWord = Word(koreanChars,min=2) 13 | 14 | # define grammar 15 | greet = koreanWord + "," + koreanWord + "!" 16 | 17 | # input string 18 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 19 | 20 | # parse input string 21 | print(greet.parseString( hello )) 22 | 23 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word, srange 10 | 11 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 12 | koreanWord = Word(koreanChars,min=2) 13 | 14 | # define grammar 15 | greet = koreanWord + "," + koreanWord + "!" 16 | 17 | # input string 18 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 19 | 20 | # parse input string 21 | print(greet.parseString( hello )) 22 | 23 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word, srange 10 | 11 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 12 | koreanWord = Word(koreanChars,min=2) 13 | 14 | # define grammar 15 | greet = koreanWord + "," + koreanWord + "!" 16 | 17 | # input string 18 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 19 | 20 | # parse input string 21 | print(greet.parseString( hello )) 22 | 23 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word, srange 10 | 11 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 12 | koreanWord = Word(koreanChars,min=2) 13 | 14 | # define grammar 15 | greet = koreanWord + "," + koreanWord + "!" 16 | 17 | # input string 18 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 19 | 20 | # parse input string 21 | print(greet.parseString( hello )) 22 | 23 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word, srange 10 | 11 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 12 | koreanWord = Word(koreanChars,min=2) 13 | 14 | # define grammar 15 | greet = koreanWord + "," + koreanWord + "!" 16 | 17 | # input string 18 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 19 | 20 | # parse input string 21 | print(greet.parseString( hello )) 22 | 23 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/examples/greetingInKorean.py: -------------------------------------------------------------------------------- 1 | # vim:fileencoding=utf-8 2 | # 3 | # greetingInKorean.py 4 | # 5 | # Demonstration of the parsing module, on the prototypical "Hello, World!" example 6 | # 7 | # Copyright 2004-2016, by Paul McGuire 8 | # 9 | from pyparsing import Word, srange 10 | 11 | koreanChars = srange(r"[\0xac00-\0xd7a3]") 12 | koreanWord = Word(koreanChars,min=2) 13 | 14 | # define grammar 15 | greet = koreanWord + "," + koreanWord + "!" 16 | 17 | # input string 18 | hello = '\uc548\ub155, \uc5ec\ub7ec\ubd84!' #"Hello, World!" in Korean 19 | 20 | # parse input string 21 | print(greet.parseString( hello )) 22 | 23 | -------------------------------------------------------------------------------- /trunk/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /trunk/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print( (nestedItems+stringEnd).parseString(data).asList() ) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") ) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.7/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.8/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.1.9/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print(tokens.classname) -------------------------------------------------------------------------------- /tags/pyparsing_2.2.0/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/matchPreviousDemo.py: -------------------------------------------------------------------------------- 1 | # 2 | # matchPreviousDemo.py 3 | # 4 | 5 | from pyparsing import * 6 | 7 | src = """ 8 | class a 9 | ... 10 | end a; 11 | 12 | class b 13 | ... 14 | end b; 15 | 16 | class c 17 | ... 18 | end d;""" 19 | 20 | 21 | identifier = Word(alphas) 22 | 23 | classIdent = identifier("classname") # note that this also makes a copy of identifier 24 | classHead = "class" + classIdent 25 | classBody = "..." 26 | classEnd = "end" + matchPreviousLiteral(classIdent) + ';' 27 | classDefn = classHead + classBody + classEnd 28 | 29 | # use this form to catch syntax error 30 | # classDefn = classHead + classBody - classEnd 31 | 32 | for tokens in classDefn.searchString(src): 33 | print tokens.classname -------------------------------------------------------------------------------- /tags/pyparsing_2.1.10/src/examples/nested.py: -------------------------------------------------------------------------------- 1 | # 2 | # nested.py 3 | # Copyright, 2007 - Paul McGuire 4 | # 5 | # Simple example of using nestedExpr to define expressions using 6 | # paired delimiters for grouping lists and sublists 7 | # 8 | 9 | from pyparsing import * 10 | import pprint 11 | 12 | data = """ 13 | { 14 | { item1 "item with } in it" } 15 | { 16 | {item2a item2b } 17 | {item3} 18 | } 19 | 20 | } 21 | """ 22 | 23 | # use {}'s for nested lists 24 | nestedItems = nestedExpr("{", "}") 25 | print(( (nestedItems+stringEnd).parseString(data).asList() )) 26 | 27 | # use default delimiters of ()'s 28 | mathExpr = nestedExpr() 29 | print(( mathExpr.parseString( "((( ax + by)*C) *(Z | (E^F) & D))") )) 30 | 31 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.3/makeRelease.bat: -------------------------------------------------------------------------------- 1 | set MAKING_PYPARSING_RELEASE=1 2 | 3 | if exist pyparsing.py del pyparsing.py 4 | rmdir build 5 | rmdir dist 6 | 7 | copy/y MANIFEST.in_src MANIFEST.in 8 | if exist MANIFEST del MANIFEST 9 | python setup.py sdist --formats=gztar,zip 10 | 11 | copy/y MANIFEST.in_bdist MANIFEST.in 12 | if exist MANIFEST del MANIFEST 13 | 14 | copy/y pyparsing_py2.py pyparsing.py 15 | python setup.py bdist_wininst --target-version=2.4 16 | python setup.py bdist_wininst --target-version=2.5 17 | python setup.py bdist_wininst --target-version=2.6 18 | python setup.py bdist_wininst --target-version=2.7 19 | 20 | copy/y pyparsing_py3.py pyparsing.py 21 | python setup.py bdist_wininst --target-version=3.0 22 | python setup.py bdist_wininst --target-version=3.1 23 | 24 | set MAKING_PYPARSING_RELEASE= -------------------------------------------------------------------------------- /tags/pyparsing_1.5.4/makeRelease.bat: -------------------------------------------------------------------------------- 1 | set MAKING_PYPARSING_RELEASE=1 2 | 3 | if exist pyparsing.py del pyparsing.py 4 | rmdir build 5 | rmdir dist 6 | 7 | copy/y MANIFEST.in_src MANIFEST.in 8 | if exist MANIFEST del MANIFEST 9 | python setup.py sdist --formats=gztar,zip 10 | 11 | copy/y MANIFEST.in_bdist MANIFEST.in 12 | if exist MANIFEST del MANIFEST 13 | 14 | copy/y pyparsing_py2.py pyparsing.py 15 | python setup.py bdist_wininst --target-version=2.4 16 | python setup.py bdist_wininst --target-version=2.5 17 | python setup.py bdist_wininst --target-version=2.6 18 | python setup.py bdist_wininst --target-version=2.7 19 | 20 | copy/y pyparsing_py3.py pyparsing.py 21 | python setup.py bdist_wininst --target-version=3.0 22 | python setup.py bdist_wininst --target-version=3.1 23 | 24 | set MAKING_PYPARSING_RELEASE= -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/makeRelease.bat: -------------------------------------------------------------------------------- 1 | set MAKING_PYPARSING_RELEASE=1 2 | 3 | copy ..\sourceforge\svn\pyparsing_1.5.x\src\CHANGES . 4 | copy ..\sourceforge\svn\pyparsing_1.5.x\src\setup.py . 5 | copy ..\sourceforge\svn\pyparsing_1.5.x\src\pyparsing.py . 6 | 7 | rmdir build 8 | rmdir dist 9 | 10 | copy/y MANIFEST.in_src MANIFEST.in 11 | if exist MANIFEST del MANIFEST 12 | python setup.py sdist --formats=gztar,zip 13 | 14 | copy/y MANIFEST.in_bdist MANIFEST.in 15 | if exist MANIFEST del MANIFEST 16 | 17 | python setup.py bdist_wininst --target-version=2.4 --plat-name=win32 18 | python setup.py bdist_wininst --target-version=2.5 --plat-name=win32 19 | python setup.py bdist_wininst --target-version=2.6 --plat-name=win32 20 | python setup.py bdist_wininst --target-version=2.7 --plat-name=win32 21 | 22 | set MAKING_PYPARSING_RELEASE= 23 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print commaSeparatedList.parseString(line) 22 | print line.split(",") 23 | print 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.7/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.0/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.1/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.2/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.3/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.4/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.5/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /tags/pyparsing_2.1.6/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | 9 | from pyparsing import commaSeparatedList 10 | 11 | testData = [ 12 | "a,b,c,100.2,,3", 13 | "d, e, j k , m ", 14 | "'Hello, World', f, g , , 5.1,x", 15 | "John Doe, 123 Main St., Cleveland, Ohio", 16 | "Jane Doe, 456 St. James St., Los Angeles , California ", 17 | "", 18 | ] 19 | 20 | for line in testData: 21 | print(commaSeparatedList.parseString(line)) 22 | print(line.split(",")) 23 | print() 24 | -------------------------------------------------------------------------------- /branches/pyparsing_1.5.x/src/examples/makeHTMLTagExample.py: -------------------------------------------------------------------------------- 1 | import urllib 2 | 3 | from pyparsing import makeHTMLTags, SkipTo 4 | 5 | # read HTML from a web page 6 | serverListPage = urllib.urlopen( "http://www.yahoo.com" ) 7 | htmlText = serverListPage.read() 8 | serverListPage.close() 9 | 10 | # using makeHTMLTags to define opening and closing tags 11 | anchorStart,anchorEnd = makeHTMLTags("a") 12 | 13 | # compose an expression for an anchored reference 14 | anchor = anchorStart + SkipTo(anchorEnd)("body") + anchorEnd 15 | 16 | # use scanString to scan through the HTML source, extracting 17 | # just the anchor tags and their associated body text 18 | # (note the href attribute of the opening A tag is available 19 | # as an attribute in the returned parse results) 20 | for tokens,start,end in anchor.scanString(htmlText): 21 | print tokens.body,'->',tokens.href 22 | -------------------------------------------------------------------------------- /tags/pyparsing_1.5.5/makeRelease.bat: -------------------------------------------------------------------------------- 1 | set MAKING_PYPARSING_RELEASE=1 2 | 3 | if exist pyparsing.py del pyparsing.py 4 | rmdir build 5 | rmdir dist 6 | 7 | copy/y MANIFEST.in_src MANIFEST.in 8 | if exist MANIFEST del MANIFEST 9 | python setup.py sdist --formats=gztar,zip 10 | 11 | copy/y MANIFEST.in_bdist MANIFEST.in 12 | if exist MANIFEST del MANIFEST 13 | 14 | copy/y pyparsing_py2.py pyparsing.py 15 | python setup.py bdist_wininst --target-version=2.4 16 | python setup.py bdist_wininst --target-version=2.5 17 | python setup.py bdist_wininst --target-version=2.6 18 | python setup.py bdist_wininst --target-version=2.7 19 | 20 | copy/y pyparsing_py3.py pyparsing.py 21 | python setup.py bdist_wininst --target-version=3.0 22 | python setup.py bdist_wininst --target-version=3.1 23 | python setup.py bdist_wininst --target-version=3.2 24 | 25 | set MAKING_PYPARSING_RELEASE= -------------------------------------------------------------------------------- /tags/pyparsing_1.5.6/makeRelease.bat: -------------------------------------------------------------------------------- 1 | set MAKING_PYPARSING_RELEASE=1 2 | 3 | if exist pyparsing.py del pyparsing.py 4 | rmdir build 5 | rmdir dist 6 | 7 | copy/y MANIFEST.in_src MANIFEST.in 8 | if exist MANIFEST del MANIFEST 9 | python setup.py sdist --formats=gztar,zip 10 | 11 | copy/y MANIFEST.in_bdist MANIFEST.in 12 | if exist MANIFEST del MANIFEST 13 | 14 | copy/y pyparsing_py2.py pyparsing.py 15 | python setup.py bdist_wininst --target-version=2.4 16 | python setup.py bdist_wininst --target-version=2.5 17 | python setup.py bdist_wininst --target-version=2.6 18 | python setup.py bdist_wininst --target-version=2.7 19 | 20 | copy/y pyparsing_py3.py pyparsing.py 21 | python setup.py bdist_wininst --target-version=3.0 22 | python setup.py bdist_wininst --target-version=3.1 23 | python setup.py bdist_wininst --target-version=3.2 24 | 25 | set MAKING_PYPARSING_RELEASE= -------------------------------------------------------------------------------- /trunk/src/examples/makeHTMLTagExample.py: -------------------------------------------------------------------------------- 1 | import urllib.request, urllib.parse, urllib.error 2 | 3 | from pyparsing import makeHTMLTags, SkipTo 4 | 5 | # read HTML from a web page 6 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 7 | htmlText = serverListPage.read() 8 | serverListPage.close() 9 | 10 | # using makeHTMLTags to define opening and closing tags 11 | anchorStart,anchorEnd = makeHTMLTags("a") 12 | 13 | # compose an expression for an anchored reference 14 | anchor = anchorStart + SkipTo(anchorEnd)("body") + anchorEnd 15 | 16 | # use scanString to scan through the HTML source, extracting 17 | # just the anchor tags and their associated body text 18 | # (note the href attribute of the opening A tag is available 19 | # as an attribute in the returned parse results) 20 | for tokens,start,end in anchor.scanString(htmlText): 21 | print(tokens.body,'->',tokens.href) 22 | -------------------------------------------------------------------------------- /trunk/src/examples/commasep.py: -------------------------------------------------------------------------------- 1 | # commasep.py 2 | # 3 | # comma-separated list example, to illustrate the advantages of using 4 | # the pyparsing commaSeparatedList as opposed to string.split(","): 5 | # - leading and trailing whitespace is implicitly trimmed from list elements 6 | # - list elements can be quoted strings, which can safely contain commas without breaking 7 | # into separate elements 8 | # 9 | # Copyright (c) 2004-2016, Paul McGuire 10 | # 11 | 12 | from pyparsing import commaSeparatedList 13 | 14 | testData = [ 15 | "a,b,c,100.2,,3", 16 | "d, e, j k , m ", 17 | "'Hello, World', f, g , , 5.1,x", 18 | "John Doe, 123 Main St., Cleveland, Ohio", 19 | "Jane Doe, 456 St. James St., Los Angeles , California ", 20 | "", 21 | ] 22 | 23 | for line in testData: 24 | print(commaSeparatedList.parseString(line)) 25 | print(line.split(",")) 26 | print() 27 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.2/src/examples/makeHTMLTagExample.py: -------------------------------------------------------------------------------- 1 | import urllib.request, urllib.parse, urllib.error 2 | 3 | from pyparsing import makeHTMLTags, SkipTo 4 | 5 | # read HTML from a web page 6 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 7 | htmlText = serverListPage.read() 8 | serverListPage.close() 9 | 10 | # using makeHTMLTags to define opening and closing tags 11 | anchorStart,anchorEnd = makeHTMLTags("a") 12 | 13 | # compose an expression for an anchored reference 14 | anchor = anchorStart + SkipTo(anchorEnd)("body") + anchorEnd 15 | 16 | # use scanString to scan through the HTML source, extracting 17 | # just the anchor tags and their associated body text 18 | # (note the href attribute of the opening A tag is available 19 | # as an attribute in the returned parse results) 20 | for tokens,start,end in anchor.scanString(htmlText): 21 | print(tokens.body,'->',tokens.href) 22 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.3/src/examples/makeHTMLTagExample.py: -------------------------------------------------------------------------------- 1 | import urllib.request, urllib.parse, urllib.error 2 | 3 | from pyparsing import makeHTMLTags, SkipTo 4 | 5 | # read HTML from a web page 6 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 7 | htmlText = serverListPage.read() 8 | serverListPage.close() 9 | 10 | # using makeHTMLTags to define opening and closing tags 11 | anchorStart,anchorEnd = makeHTMLTags("a") 12 | 13 | # compose an expression for an anchored reference 14 | anchor = anchorStart + SkipTo(anchorEnd)("body") + anchorEnd 15 | 16 | # use scanString to scan through the HTML source, extracting 17 | # just the anchor tags and their associated body text 18 | # (note the href attribute of the opening A tag is available 19 | # as an attribute in the returned parse results) 20 | for tokens,start,end in anchor.scanString(htmlText): 21 | print(tokens.body,'->',tokens.href) 22 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.4/src/examples/makeHTMLTagExample.py: -------------------------------------------------------------------------------- 1 | import urllib.request, urllib.parse, urllib.error 2 | 3 | from pyparsing import makeHTMLTags, SkipTo 4 | 5 | # read HTML from a web page 6 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 7 | htmlText = serverListPage.read() 8 | serverListPage.close() 9 | 10 | # using makeHTMLTags to define opening and closing tags 11 | anchorStart,anchorEnd = makeHTMLTags("a") 12 | 13 | # compose an expression for an anchored reference 14 | anchor = anchorStart + SkipTo(anchorEnd)("body") + anchorEnd 15 | 16 | # use scanString to scan through the HTML source, extracting 17 | # just the anchor tags and their associated body text 18 | # (note the href attribute of the opening A tag is available 19 | # as an attribute in the returned parse results) 20 | for tokens,start,end in anchor.scanString(htmlText): 21 | print(tokens.body,'->',tokens.href) 22 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.5/src/examples/makeHTMLTagExample.py: -------------------------------------------------------------------------------- 1 | import urllib.request, urllib.parse, urllib.error 2 | 3 | from pyparsing import makeHTMLTags, SkipTo 4 | 5 | # read HTML from a web page 6 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 7 | htmlText = serverListPage.read() 8 | serverListPage.close() 9 | 10 | # using makeHTMLTags to define opening and closing tags 11 | anchorStart,anchorEnd = makeHTMLTags("a") 12 | 13 | # compose an expression for an anchored reference 14 | anchor = anchorStart + SkipTo(anchorEnd)("body") + anchorEnd 15 | 16 | # use scanString to scan through the HTML source, extracting 17 | # just the anchor tags and their associated body text 18 | # (note the href attribute of the opening A tag is available 19 | # as an attribute in the returned parse results) 20 | for tokens,start,end in anchor.scanString(htmlText): 21 | print(tokens.body,'->',tokens.href) 22 | -------------------------------------------------------------------------------- /tags/pyparsing_2.0.6/src/examples/makeHTMLTagExample.py: -------------------------------------------------------------------------------- 1 | import urllib.request, urllib.parse, urllib.error 2 | 3 | from pyparsing import makeHTMLTags, SkipTo 4 | 5 | # read HTML from a web page 6 | serverListPage = urllib.request.urlopen( "http://www.yahoo.com" ) 7 | htmlText = serverListPage.read() 8 | serverListPage.close() 9 | 10 | # using makeHTMLTags to define opening and closing tags 11 | anchorStart,anchorEnd = makeHTMLTags("a") 12 | 13 | # compose an expression for an anchored reference 14 | anchor = anchorStart + SkipTo(anchorEnd)("body") + anchorEnd 15 | 16 | # use scanString to scan through the HTML source, extracting 17 | # just the anchor tags and their associated body text 18 | # (note the href attribute of the opening A tag is available 19 | # as an attribute in the returned parse results) 20 | for tokens,start,end in anchor.scanString(htmlText): 21 | print(tokens.body,'->',tokens.href) 22 | --------------------------------------------------------------------------------