Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
fja
eval
Commits
db6b461f
Commit
db6b461f
authored
Jun 10, 2021
by
Vladimír Štill
Browse files
make: Update with dedicated RegG parser
parent
ca627382
Pipeline
#95272
passed with stage
in 1 minute and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
db6b461f
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment