Commit db6b461f authored by Vladimír Štill's avatar Vladimír Štill
Browse files

make: Update with dedicated RegG parser

parent ca627382
Pipeline #95272 passed with stage
in 1 minute and 29 seconds
PY = $(wildcard *.py)
GRMS=DFA NFA CFG RegEx
GRMS=DFA NFA CFG RegG RegEx
-include local.make
......@@ -19,9 +19,14 @@ test: typecheck unit
grammars : $(GRMS:%=lib/parser/%Parser.py)
$(GRMS:%=lib/parser/%Parser.py) : lib/parser/%Parser.py : lib/parser/%.g4 lib/parser/FA.g4
$(GRMS:%=lib/parser/%Parser.py) : lib/parser/%Parser.py : lib/parser/%.g4
antlr4 -Dlanguage=Python3 -visitor $<
@# let's be a bit more permissive for versions
sed -i '/self.checkVersion(".*")/d' $(@:%Parser.py=%*.py)
FA_PARSER=DFA NFA
$(FA_PARSER:%=lib/parser/%Parser.py) : lib/parser/FA.g4
lib/parser/RegG.g4 : lib/parser/CFG.g4
.PHONY: %.mypy typecheck test unit all grammars
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment