kitspace / electro-grammar

:zap: A parser for electronic component descriptions
https://kitspace.github.io/electro-grammar/
MIT License
277 stars 13 forks source link

Investigate usage of cross-language actions #13

Open kasbah opened 6 years ago

kasbah commented 6 years ago

Antlr seems to have some support for cross-language actions embedded within Grammars, though I can only find one reference to them an it's in the context of testing Antlr itself. If it is what I think it is then it could potentially save us a lot of repeated code across different languages.

kasbah commented 6 years ago

I added a comment to a related Antlr issue. Parrt's comment:

yeah that works for a small set of known things like printing.