summaryrefslogtreecommitdiff
path: root/src/examples
Commit message (Collapse)AuthorAgeFilesLines
* Move src to rootCengiz Kaygusuz2017-11-2093-16518/+0
|
* Update oc.py example: fix regex for '==' operator, add packrat parsing and ↵Paul McGuire2017-04-231-4/+6
| | | | function call as expression operand
* Fix deprecated use of '\' as described in https://bugs.python.org/issue27364 ↵Paul McGuire2017-03-034-7/+7
| | | | (Deprecated in Python 3.6, will become SyntaxError in a future release)
* Updated some examples to more current pyparsing coding methodsPaul McGuire2016-09-244-155/+86
|
* (no commit message)Paul McGuire2016-09-151-8/+3
|
* Expand results names to capture multiple values; add '*' as potential ↵Paul McGuire2016-09-131-3/+3
| | | | function argument
* Fix spelling on contributor's namePaul McGuire2016-09-101-1/+1
|
* Upgrade to use pyparsing_common for numbersPaul McGuire2016-08-191-4/+5
|
* Fix 'from' results name to include all join elements.Paul McGuire2016-08-181-1/+1
|
* reformat test comments for runTests; example of using results from runTests ↵Paul McGuire2016-08-143-24/+67
| | | | in wordsToNum.py
* Add examples from pyparsing_commonPaul McGuire2016-08-141-1/+13
|
* Update to new pyparsing and Python featuresPaul McGuire2016-08-141-14/+7
|
* Add missing authorship attributions and copyrights to examplesPaul McGuire2016-08-0918-46/+92
|
* Update to current pyparsing featuresPaul McGuire2016-08-073-45/+21
|
* Update indentedGrammarExample.py to use indentedBlockPaul McGuire2016-08-072-69/+10
| | | Remove confusing example tagCapture.py
* Added new numerics.py examplePaul McGuire2016-05-251-0/+62
|
* Py2/Py3 compatibilityPaul McGuire2016-05-181-3/+8
|
* Update pyparsing code practicesPaul McGuire2016-05-174-101/+30
|
* Removed deprecated class Upcase and deprecated class keepOriginalText; ↵Paul McGuire2016-02-0710-30/+30
| | | | updated examples to remove those symbols, and to replace operatorPrecedence with infixNotation
* Cleanup examples, fix typo in fourFn.py, convert sample tests to use runTestsPaul McGuire2016-01-274-51/+40
|
* Updates to include default minutes and seconds in time of day if not given; ↵Paul McGuire2016-01-221-52/+62
| | | | handle both "day at time" and "time on day" ordering; conditionalize tests so module can be imported
* Added new example parseTabularData.pyPaul McGuire2015-12-3115-169/+185
| | | Updated several examples to more current Python and pyparsing practices (and better Py2/Py3 cross-compatibility)
* Remove list comprehensions in favor of gen exprsPaul McGuire2015-12-301-3/+3
|
* Update wordsToNum.py examplePaul McGuire2015-12-251-19/+8
| | | | | - removed list comprehensions when gen expr is sufficient - changed ignore('-') to ignore(Literal('-')) - converted test code to use runTests
* Remove duplicate '||' operator in select_parser.py examplePaul McGuire2015-07-281-1/+0
|
* Fixed bug in fourFn.py example code, where pi and e were defined using ↵Paul McGuire2015-05-011-3/+9
| | | | CaselessLiteral instead of CaselessKeyword
* Minor mods to released examples Paul McGuire2014-10-115-2/+245
|
* Properly return lists when parsing list values (instead of return ParseResults)Paul McGuire2014-08-121-0/+2
|
* Cleanup unit tests for cross 2.x/3.x Python compatibilityPaul McGuire2013-09-214-6/+79
|
* Fix Python 2.x/3.x compatibility (now that Pyparsing 2.0.x includes Python ↵Paul McGuire2013-09-141-55/+69
| | | | 2.6+ compatibility) - also fix bug with expressions that consist solely of a single term with no operations; and reorg class hierarchy for better DRY
* Clean up examples to be Python 3 compatiblePaul McGuire2012-11-2379-966/+1251
|
* Add example files to SVNPaul McGuire2012-10-0288-0/+15956