Permalink
Please sign in to comment.
Showing
with
3,789 additions
and 3,499 deletions.
- +6 −0 parsers/Makefile
- +6 −1 parsers/README.md
- 0 { → parsers}/grammar.hgr
- BIN parsers/java/commons-codec-1.10.jar
- +2 −2 parsers/java/generate.sh
- +874 −787 parsers/java/java7/WdlParser.java
- +894 −807 parsers/java/java8/WdlParser.java
- +1 −1 parsers/javascript/Makefile
- +1,028 −964 parsers/javascript/wdl_parser.js
- +1 −1 parsers/python/Makefile
- +977 −936 parsers/python/wdl_parser.py
| @@ -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 | # 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 | #!/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 | ||
| @@ -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 | ||
| @@ -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 | ||
0 comments on commit
048dc55