Skip to content
Snippets Groups Projects
Unverified Commit 6ea6793d authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Allowing atom names to contain digits. Fixes #30.

parent 19531532
No related branches found
No related tags found
No related merge requests found
webopenccg/generated_openccg_parser.py: OpenCCG.ebnf
docker run --rm --detach --name web-openccg -v $$(pwd):/tmp web-openccg tatsu --generate-parser /tmp/$< --outfile /tmp/$@
docker run --rm --name web-openccg -v $$(pwd):/tmp web-openccg tatsu --generate-parser /tmp/$< --outfile /tmp/$@
.PHONY: build
build:
......
......@@ -45,5 +45,5 @@ variable_type::str
;
atom::str
= /[a-zA-Z\-\._]+/
= /[a-zA-Z\-\._0-9]+/
;
......@@ -262,7 +262,7 @@ class OpenCCGParser(Parser):
@tatsumasu('str')
def _atom_(self): # noqa
self._pattern(r'[a-zA-Z\-\._]+')
self._pattern(r'[a-zA-Z\-\._0-9]+')
class OpenCCGSemantics(object):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment