Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
JavaScript support for a Hermes WDL grammar #94
Conversation
|
@sidoruka This is great, thanks! I've got one note and one question.
|
geoffjentry
referenced
this pull request
Feb 21, 2017
Merged
Update grammar file to match Cromwell supported WDL version #95
|
Took a closer look. We'll need to verify the |
| @@ -0,0 +1 @@ | ||
| +tests/node_modules |
geoffjentry
Feb 22, 2017
•
Member
add a \n here please (and in all the other files not ending in one)
|
@sidoruka Hi - can you rebase this PR? It'll pick up the updated grammar.hgr file |
|
@geoffjentry thanks for the review,
Regarding your question, I would say that there are two things that could affect JS implementation and require its support:
Also I'll try to build wdl4s parser from new grammar and run tests from wdl4s repository to make sure that nothing is broken. |
|
@sidoruka If building Your PR did make me think that we could just autogenerate parsers for all of the Hermes targets on update to As for the status of this PR I'm |
|
@geoffjentry I've tried building java parser from new grammar and running tests from Regarding your question and a proposed policy - it is ok to me. |
|
@sidoruka Perfect, thanks. I'm going to merge this as-is for now although note that we'll likely move things around a bit in the near future. I'll leave the structure of what you have for the JS subdir intact, it just might move to e.g. a |
sidoruka commentedFeb 21, 2017
General idea
Currently Hermes WDL grammar fully supports compilers generation only for Python and Java languages.
We would like to propose improved JavaScript support for a Hermes WDL grammar and hope these improvements to be useful for generating a WDL compiler for JavaScript (JS).
Changes summary for grammar.hgr
WDL Parser.JS, tests and sample code
The generated WDL parser, together with tests and sample code are added to javascript folder