Move grammar.hgr and add makefiles #111
Merged
Commits
Jump to file or symbol
Failed to load files and symbols.
Move grammar.hgr and add makefiles
commit 73459c843284b60810946269115ab77053f012b8
geoffjentry
committed
May 9, 2017
| @@ -0,0 +1,6 @@ | ||
| +TARGETS = python javascript java | ||
| + | ||
| +all: | ||
| + $(foreach var,$(TARGETS),make -C $(var) all;) | ||
| +clean: | ||
| + $(foreach var,$(TARGETS),make -C $(var) clean;) |
| @@ -1,3 +1,8 @@ | ||
| # Parsers for WDL | ||
| -This directory contains pregenerated parsers for WDL in a variety of languages. Except for the Java parser, all of these are provided *as-is*. We believe that they work but do not have the resources to validate that claim, but if you're willing to help us fix any issues you come across we'll work with you to do so." | ||
| +This directory contains pregenerated parsers for WDL in a variety of languages. Except for the Java parser, all of these are provided *as-is*. We believe that they work but do not have the resources to validate that claim. However if you're willing to help us fix any issues you come across we'll work with you to do so." | ||
| + | ||
| +# How to rebuild | ||
| + | ||
| +Typing `make` in this directory will trigger builds for all of the languages and produce the appropriate files. This requires you to have [Hermes](https://github.com/scottfrazer/hermes) installed on your system. To do this you might need to use a virtualenv, e.g. ``mkvirtualenv py3 -p `which python3` `` | ||
| + |
File renamed without changes.
Binary file not shown.
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash | ||
| -hermes generate ../../grammar.hgr --name=wdl --directory=java7 --language=java --java-use-apache-commons --java-imports=org.apache.commons.lang3.StringEscapeUtils | ||
| -hermes generate ../../grammar.hgr --name=wdl --directory=java8 --language=java --java-imports=org.apache.commons.lang3.StringEscapeUtils | ||
| +hermes generate ../grammar.hgr --name=wdl --directory=java7 --language=java --java-use-apache-commons --java-imports=org.apache.commons.lang3.StringEscapeUtils | ||
| +hermes generate ../grammar.hgr --name=wdl --directory=java8 --language=java --java-imports=org.apache.commons.lang3.StringEscapeUtils |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
| @@ -1,5 +1,5 @@ | ||
| all: generate | ||
| generate: | ||
| - python hermes generate ../../grammar.hgr --language=javascript --name=wdl --nodejs --header --directory . | ||
| + python hermes generate ../grammar.hgr --language=javascript --name=wdl --nodejs --header --directory . | ||
| clean: | ||
| rm wdl_parser.js |
Large diffs are not rendered by default.
Oops, something went wrong.
| @@ -1,5 +1,5 @@ | ||
| all: generate | ||
| generate: | ||
| - hermes generate ../../grammar.hgr --language=python --name=wdl --header --directory . | ||
| + hermes generate ../grammar.hgr --language=python --name=wdl --header --directory . | ||
| clean: | ||
| rm wdl_parser.py |
Large diffs are not rendered by default.
Oops, something went wrong.