←back to thread

377 points porterde | 1 comments | | HN request time: 0.208s | source
Show context
kristianp ◴[] No.42142905[source]
I appreciate the amount of work that might have gone into this, but a small annoyance:

> Antlr4BuildTasks library couldn't automatically download Java.

It would be nice if more effort was put into avoiding large dependencies, like a java runtime for a .net product. Edit: It's not just the size of the dependency, it's the complexity this adds to the deployment and development.

replies(2): >>42142969 #>>42145219 #
bandysc ◴[] No.42145219[source]
I don't know any better alternative than ANTLR for grammar generation, this is unfortunately written in Java, so there is not a good way to avoid it. I mean, I could manually generate .cs files and commit them to the repo.

Antlr4BuildTasks at least automates this step (both downloading java and building antlr4).

Long story short, I don't see a better alternative for grammar generation now.

replies(1): >>42200010 #
1. kristianp ◴[] No.42200010[source]
Ok, I thought I'd raise the subjective "issue". There is a port of Antlr to .net, but I don't know whether it is well maintained or how compatible it is.