summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Changes for pyparsing version 1.5.2pyparsing_1.5.2@182ptmcg2009-04-184-13/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@182 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Changes for pyparsing version 1.5.2ptmcg2009-04-135-112/+198
| | | | | | | scanString handles zero-length parsed results "except" statements are more Py3K-friendly git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@181 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updates submitted through pastebin, submitted by Patrick Labanptmcg2009-03-301-3/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@180 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Removed __slots__ declaration on ParseBaseException, for compatibility with ↵ptmcg2009-02-183-37/+52
| | | | | | IronPython 2.0.1. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@179 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Tighten up __eq__ for ParserElement.ptmcg2009-01-291-4/+7
| | | | | | Clarify docstring for SkipTo indicating that if include=True, then the skipped text and target expression text are returned as a 2-element list. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@178 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Clean up exception stack traces returned to caller (updated scanString, ↵ptmcg2009-01-051-25/+34
| | | | | | searchString, and transformString in addition to parseString) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@177 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in SkipTo when ignore argument is found at the beginning of the ↵ptmcg2008-12-203-17/+40
| | | | | | | | | range of text to be skipped. Fixed docstring in White class. Fixed obscure bug when calling __getitem__ of an object that replaces ParseResults during a parse action. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@176 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Make generator expr handling tolerant of getting non-iterablesptmcg2008-12-051-3/+6
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@175 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed some Py3K set/dict codeptmcg2008-11-081-3/+5
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@174 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added support for generator expressions when manually creating And, Or, ↵ptmcg2008-11-081-15/+31
| | | | | | | | | | MatchFirst, or Each objects Clean up exception stack traces returned to caller Fix ignoreExpr handling in SkipTo git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@173 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added support for generator expressions when manually creating And, Or, ↵ptmcg2008-11-081-2/+2
| | | | | | MatchFirst, or Each objects git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@172 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added support for generator expressions when manually creating And, Or, ↵ptmcg2008-11-081-1/+18
| | | | | | MatchFirst, or Each objects git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@171 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Clean up exception stack traces returned to callerptmcg2008-11-071-0/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@170 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Clean up exception stack traces returned to callerptmcg2008-11-071-8/+17
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@169 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix ignoreExpr handling in SkipToptmcg2008-11-061-4/+9
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@168 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated for version 1.5.1 releaseptmcg2008-10-184-153/+289
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@167 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* *Really* fixed nestedExpr behavior if multi-character expression delimiters ↵ptmcg2008-10-021-8/+18
| | | | | | are used. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@166 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix nestedExpr behavior if multi-character expression delimiters are used.ptmcg2008-10-012-6/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@165 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in LineStart and LineEnd which did not recognize whitespace chars ↵ptmcg2008-09-052-2/+7
| | | | | | set using setDefaultWhitespaceChars. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@164 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in parseString(parseAll=True), when the input string ends with a ↵ptmcg2008-09-032-29/+36
| | | | | | | | | comment or whitespace. Made Forward class more tolerant of subclassing. Fixed (pre-release) bug in originalTextFor, when asString=False - now correctly preserves any results names. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@163 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Removed generator expression for compatibility with older Python versionsptmcg2008-08-042-10/+15
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@162 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added new helper method 'originalTextFor' to eventually supercede ↵ptmcg2008-07-282-11/+56
| | | | | | | | | keepOriginalText parse action. Fixed '-' error stop bug when expression is contained within a Combine. Added __ne__ method to ParserElement to prevent Python's default behavior of id(self) != id(other) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@161 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in ParseResults.asXML()ptmcg2008-07-022-6/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@160 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added __dir__ function to ParseException and ParseResults classes, for ↵ptmcg2008-07-022-25/+53
| | | | | | | | Python 2.6 and 3.0 support. Added failOn argument to SkipTo to allow specification of strings or expressions that may not be skipped. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@159 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Removed dependency on xml.sax.saxutils.escape, and implemented it inline as ↵ptmcg2008-06-042-8/+33
| | | | | | | | | _xml_escape. Fixed typo in ParseResults.insert, referencing invalid var 'j' (replaced with 'index') Fixed error in replaceHTMLEntity, mapping " to ', now correctly maps to " git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@158 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add parseAll flag to parseFile, passes through to parseStringptmcg2008-06-041-4/+4
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@157 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Py3K changesptmcg2008-06-011-46/+154
| | | | | | | Added indentedBlock Optional bugfix in Each, and Optional adds results name for default value. git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@156 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add Py3K compatible version of pyparsingptmcg2008-06-011-0/+3601
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@155 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add change descriptions for indentedBlock and Optional bug fixesptmcg2008-06-011-8/+34
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@154 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated to v1.5.0ptmcg2008-06-012-85/+422
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@153 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated PY3K referencesptmcg2008-05-122-638/+796
| | | | | | Added '-' operator to implement ErrorStop feature (detecting syntax errors in optional grammar branches) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@152 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fixed bug in nestedExpr requiring ignoreExpr to be whitespace separated in ↵ptmcg2008-05-041-2/+7
| | | | | | the input text git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@151 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add parseAll optional argument to parseString, to require full string parsingptmcg2008-05-041-32/+78
| | | | | | | | | | | Add support for ternary operators in operatorPrecedence Add support for None in tuple multiplication of ParserElements Added __hash__ method to ParserElement Fix bug in Each class, to fix premature initialization of attributes Fix TypeError bug when running under Python 2.3 git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@150 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Changes for compatibility with Python 3.0a3ptmcg2008-02-102-71/+92
| | | | | | | Added ParseResults.get() and ParseResults.insert() methods Removed forcing of attributes to lower case in withAttribute (to allow use with XML) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@149 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added withAttribute.ANY_VALUE to specify that an attribute must be present, ↵ptmcg2008-01-162-11/+48
| | | | | | | | | but may have any value. Added '==' support to ParserElement, to support short-cut string validation, such as "123"==Word(nums) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@148 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added unit test for nestedExpr helper.ptmcg2008-01-051-1/+107
| | | | | | | (submitted by christoph... as part of the Google Highly-Open Participation Contest) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@147 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Beefed up WordStart and WordEnd tests, to better test start/end of line ↵ptmcg2008-01-051-3/+12
| | | | | | checking, and compatibility with NotAny git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@146 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added unit test for WordStart and WordEnd classesptmcg2008-01-051-0/+43
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@145 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added unit test for withAttribute helper parse action (submitted by voigts ↵ptmcg2008-01-051-0/+42
| | | | | | as part of the Google Highly-Open Participation Contest) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@144 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Changed '<<' operator on Forward to return None.ptmcg2008-01-032-18/+41
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@143 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added matchOnlyAtCol helper parse actionptmcg2008-01-032-1/+15
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@142 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added WordStart and WordEnd classesptmcg2008-01-031-0/+7
| | | | | | | Better nested expression matching using nestedExpr (simpler expressions as delimiters) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@141 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Added WordStart and WordEnd classesptmcg2008-01-031-5/+51
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@140 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated version dateptmcg2007-12-291-1/+1
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@139 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Changes for IronPython compatibilityptmcg2007-12-291-5/+7
| | | | | | | Better nested expression matching using nestedExpr (simpler expressions as delimiters) Forward assumes ignorables from embedded expression git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@138 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Fix bug in which ignorables are not propagated to ParseElementEnhance ↵ptmcg2007-12-192-2/+12
| | | | | | wrapper classes (ZeroOrMore, OneOrMore, etc.) git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@137 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Include changes made in 1.4.7 version of this fileptmcg2007-12-191-1/+20
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@136 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated for 1.4.10ptmcg2007-12-101-4/+161
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@135 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Updated for V1.4.10ptmcg2007-12-102-58/+104
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@134 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
* Add __rmul__ to make __mul__ commutative.ptmcg2007-12-101-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@133 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b