summaryrefslogtreecommitdiff
path: root/src/examples
Commit message (Collapse)AuthorAgeFilesLines
* Update oc.py example: fix regex for '==' operator, add packrat parsing and ↵ptmcg2017-04-231-4/+6
| | | | | | function call as expression operand git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@462 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix deprecated use of '\' as described in https://bugs.python.org/issue27364 ↵ptmcg2017-03-034-7/+7
| | | | | | (Deprecated in Python 3.6, will become SyntaxError in a future release) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@457 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated some examples to more current pyparsing coding methodsptmcg2016-09-244-155/+86
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@442 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@441 ↵ptmcg2016-09-151-8/+3
| | | | 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Expand results names to capture multiple values; add '*' as potential ↵ptmcg2016-09-131-3/+3
| | | | | | function argument git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@438 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix spelling on contributor's nameptmcg2016-09-101-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@434 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Upgrade to use pyparsing_common for numbersptmcg2016-08-191-4/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@427 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix 'from' results name to include all join elements.ptmcg2016-08-181-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@426 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* reformat test comments for runTests; example of using results from runTests ↵ptmcg2016-08-143-24/+67
| | | | | | in wordsToNum.py git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@420 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add examples from pyparsing_commonptmcg2016-08-141-1/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@418 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update to new pyparsing and Python featuresptmcg2016-08-141-14/+7
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@417 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add missing authorship attributions and copyrights to examplesptmcg2016-08-0918-46/+92
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@404 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update to current pyparsing featuresptmcg2016-08-073-45/+21
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@400 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update indentedGrammarExample.py to use indentedBlockptmcg2016-08-072-69/+10
| | | | | | Remove confusing example tagCapture.py git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@393 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added new numerics.py exampleptmcg2016-05-251-0/+62
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@359 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Py2/Py3 compatibilityptmcg2016-05-181-3/+8
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@352 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update pyparsing code practicesptmcg2016-05-174-101/+30
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@351 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Removed deprecated class Upcase and deprecated class keepOriginalText; ↵ptmcg2016-02-0710-30/+30
| | | | | | updated examples to remove those symbols, and to replace operatorPrecedence with infixNotation git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@320 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Cleanup examples, fix typo in fourFn.py, convert sample tests to use runTestsptmcg2016-01-274-51/+40
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@316 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updates to include default minutes and seconds in time of day if not given; ↵ptmcg2016-01-221-52/+62
| | | | | | handle both "day at time" and "time on day" ordering; conditionalize tests so module can be imported git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@314 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added new example parseTabularData.pyptmcg2015-12-3115-169/+185
| | | | | | Updated several examples to more current Python and pyparsing practices (and better Py2/Py3 cross-compatibility) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@309 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Remove list comprehensions in favor of gen exprsptmcg2015-12-301-3/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@308 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Update wordsToNum.py exampleptmcg2015-12-251-19/+8
| | | | | | | | - removed list comprehensions when gen expr is sufficient - changed ignore('-') to ignore(Literal('-')) - converted test code to use runTests git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@307 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Remove duplicate '||' operator in select_parser.py exampleptmcg2015-07-281-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@283 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in fourFn.py example code, where pi and e were defined using ↵ptmcg2015-05-011-3/+9
| | | | | | CaselessLiteral instead of CaselessKeyword git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@282 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Minor mods to released examples ptmcg2014-10-115-2/+245
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@277 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Properly return lists when parsing list values (instead of return ParseResults)ptmcg2014-08-121-0/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@274 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Cleanup unit tests for cross 2.x/3.x Python compatibilityptmcg2013-09-214-6/+79
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@261 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix Python 2.x/3.x compatibility (now that Pyparsing 2.0.x includes Python ↵ptmcg2013-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 git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@257 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Clean up examples to be Python 3 compatibleptmcg2012-11-2379-966/+1251
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@246 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add example files to SVNptmcg2012-10-0288-0/+15956
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/trunk@238 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b