Commits

Author Commit Message Labels Comments Date
Waldemar Kornewald
fixed handling of parse errors in grammar definitions
Waldemar Kornewald
added eol def
Waldemar Kornewald
switched unit tests to Python's unittest package, so we don't need Twisted, anymore
Waldemar Kornewald
improved usability: Grammar.parse(source) will return the parsed source or raise ParseError. Previously you'd use Grammar.apply() which returns a tuple of parsed source and a parse error which could be thrown away
Waldemar Kornewald
fixed license. of course this is based on work done by Allen Short and we use the MIT license here.
Waldemar Kornewald
added BSD license
Waldemar Kornewald
improved tracebacks when a parse error appears at line end ('\n') char
Waldemar Kornewald
improved parse errors
Waldemar Kornewald
minor cleanups
Waldemar Kornewald
fixed setup.py
Waldemar Kornewald
setup.py cleanup
Waldemar Kornewald
fixed error handling if no reason given
Waldemar Kornewald
renamed test to tests
Waldemar Kornewald
merged with original PyMeta. this adds better error handling and improves efficiency
Waldemar Kornewald
added match_string rule
Waldemar Kornewald
moved everyting into a nice package
Waldemar Kornewald
fixed apply() rule and added unit test for it
Waldemar Kornewald
got rid of unnecessary lookahead
Waldemar Kornewald
Now single-quotes '...' match not only single chars, but also whole string objects (should be used in lists). Double-quotes "..." now match strings without whitespace. Previously, only token() could be used to match strings, but that also takes preceding whitespace, so it's not good for indentation-based languages.
Thomas Wanschik
added rule apply
Waldemar Kornewald
Fixed ParseError exception usage
Waldemar Kornewald
ported to new version 2 syntax