| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@182 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@180 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
| |
IronPython 2.0.1.
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@179 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@175 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@174 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
MatchFirst, or Each objects
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@172 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
| |
MatchFirst, or Each objects
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@171 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@170 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@169 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@168 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@167 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
| |
are used.
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@166 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@165 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
| |
set using setDefaultWhitespaceChars.
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@164 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@162 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@160 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
_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
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@157 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@155 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@154 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@153 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
the input text
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@151 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
| |
checking, and compatibility with NotAny
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@146 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@145 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@143 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@142 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@140 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@139 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
wrapper classes (ZeroOrMore, OneOrMore, etc.)
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@137 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@136 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@135 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@134 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|
|
|
|
| |
git-svn-id: svn://svn.code.sf.net/p/pyparsing/code/src@133 9bf210a0-9d2d-494c-87cf-cfb32e7dff7b
|