Commits

Author Commit Message Labels Comments Date
Waldemar Kornewald
don't re-parse grammar on import
Bookmarks
5 bookmarks
Waldemar Kornewald
Removed empty docs
Waldemar Kornewald
added anychar rule for matching characters without using 'a' | 'b' | ... constructs
Waldemar Kornewald
Cleanup of ignores and docs
Waldemar Kornewald
switched to new except-as syntax
Waldemar Kornewald
fixed error handling when parsing lists instead of strings
Waldemar Kornewald
added empty docs
Waldemar Kornewald
ignore checks for tests/__init__.py
Waldemar Kornewald
cleaned up unit tests
Waldemar Kornewald
moved tests into package
Waldemar Kornewald
fixed pep8 and pyflakes errors
Waldemar Kornewald
fixed a little bug
Waldemar Kornewald
fixed parse error handling of nullError
Waldemar Kornewald
always use unicode instead of str
Waldemar Kornewald
fixed handling of parse errors in grammar definitions
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
improved tracebacks when a parse error appears at line end ('\n') char
Waldemar Kornewald
improved parse errors
Waldemar Kornewald
minor cleanups
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
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.
Waldemar Kornewald
ported to new version 2 syntax