Open behnazh-w opened 2 months ago
I poked around a little, and here are a few references. First off, It would be tricky to write a grammar for make, since the grammar is extremely context-dependent. (thread, similar questions here or especially here).
Having said that, I found the following attempts to come up with a Makefile grammar:
It might also make sense to explore existing syntax highlighters like Pygments which support at least Makefile lexers.
@behnazh-w given a Makefile, it looks like you’re interested in extracting the Recipes from it?
Makefile is often used as a generic build tool. In fact, Macaron itself uses
Makefile
to generate artifacts. We already have support for a number of build tools.To support
Makefile
Makefile
to extract shell commands, similar to our bashparser.make
similar to other build tools.