Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93e123e
commit 2859bbd
Showing
2 changed files
with
12 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,6 @@ | ||
.PHONY: all clean abnf_patch test | ||
.PHONY: all abnf_patch | ||
|
||
all: dhall/_grammar.py | ||
|
||
clean: | ||
rm -rf dhall/_grammar.py dhall.abnf | ||
|
||
dhall/_grammar.py: dhall.abnf abnf2bnf.py bnf2parglare.py json2python.py grammar_desugaring.py | ||
cat $< | python abnf2bnf.py complete-expression | python bnf2parglare.py | python json2python.py grammar > $@ | ||
|
||
dhall.abnf: dhall-lang/standard/dhall.abnf dhall.abnf.patch | ||
patch --binary -o $@ $^ | ||
all: | ||
|
||
abnf_patch: | ||
diff -u dhall-lang/standard/dhall.abnf dhall.abnf > dhall.abnf.patch | ||
diff -u dhall-lang/standard/dhall.abnf dhall.abnf > dhall.abnf.patch; test $$? -le 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters