Permalink
Browse files

Move grammar.hgr and add makefiles (#111)

  • Loading branch information...
1 parent 6e67179 commit 048dc55ff079edd75f39cf637dc4270b85856a54 @geoffjentry geoffjentry committed on GitHub May 9, 2017
View
@@ -0,0 +1,6 @@
+TARGETS = python javascript java
+
+all:
+ $(foreach var,$(TARGETS),make -C $(var) all;)
+clean:
+ $(foreach var,$(TARGETS),make -C $(var) clean;)
View
@@ -1,3 +1,8 @@
# Parsers for WDL # 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.
View
@@ -1,4 +1,4 @@
#!/bin/bash #!/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=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=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 all: generate
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: clean:
rm wdl_parser.js rm wdl_parser.js

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,5 +1,5 @@
all: generate all: generate
generate: generate:
- hermes generate ../../grammar.hgr --language=python --name=wdl --header --directory . + hermes generate ../grammar.hgr --language=python --name=wdl --header --directory .
clean: clean:
rm wdl_parser.py rm wdl_parser.py
View

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 048dc55

Please sign in to comment.