| @@ -32,7 +32,7 @@ $ pip install lark-parser | |||||
| * [Philosophy & Design Choices](philosophy.md) | * [Philosophy & Design Choices](philosophy.md) | ||||
| * [Full List of Features](features.md) | |||||
| * [Features](features.md) | |||||
| * [Examples](https://github.com/lark-parser/lark/tree/master/examples) | * [Examples](https://github.com/lark-parser/lark/tree/master/examples) | ||||
| * [Online IDE](https://lark-parser.github.io/lark/ide/app.html) | * [Online IDE](https://lark-parser.github.io/lark/ide/app.html) | ||||
| * Tutorials | * Tutorials | ||||
| @@ -14,6 +14,8 @@ class Discard(Exception): | |||||
| # Transformers | # Transformers | ||||
| class _Decoratable: | class _Decoratable: | ||||
| "Provides support for decorating methods with @v_args" | |||||
| @classmethod | @classmethod | ||||
| def _apply_decorator(cls, decorator, **kwargs): | def _apply_decorator(cls, decorator, **kwargs): | ||||
| mro = getmro(cls) | mro = getmro(cls) | ||||
| @@ -721,7 +721,8 @@ def _make_parser_test(LEXER, PARSER): | |||||
| """) | """) | ||||
| g.parse('\x01\x02\x03') | g.parse('\x01\x02\x03') | ||||
| @unittest.skipIf(sys.version_info[:2]==(2, 7), "bytes parser isn't perfect in Python2.7, exceptions don't work correctly") | |||||
| @unittest.skipIf(sys.version_info[0]==2 or sys.version_info[:2]==(3, 4), | |||||
| "bytes parser isn't perfect in Python2, exceptions don't work correctly") | |||||
| def test_bytes_utf8(self): | def test_bytes_utf8(self): | ||||
| g = r""" | g = r""" | ||||
| start: BOM? char+ | start: BOM? char+ | ||||