github / semantic

Parsing, analyzing, and comparing source code across many languages
8.98k stars 452 forks source link

semantic-ast doesn't have an associated executable #706

Open Boarders opened 11 months ago

Boarders commented 11 months ago

In the README for semantic-ast here it mentions how to use the executable in app/Main.hs to do Haskell codegen for the given grammar. However this executable is not defined in the semantic-ast cabal file. I was wondering if this was just an oversight or some deliberate change or if there is something obvious I am missing about how to create this executable?

Happy to make a PR to add it to the cabal file if that would be welcome.

flip111 commented 7 months ago

It's not just about declaring Main.hs in the cabal file. The source code of Main.hs is very much integrated with Bazel. Bazel is not necessary and should be optional. Also it will automatically run ormulu on the generate code where you might want no formatting or run your own formatter.