Add better support for using concrete object syntax (2)
Right now, you have to 1) create .meta files by hand for each file where you want to use concrete syntax and 2) change the build.main.xml to 3) fetch the grammar from disk somewhere. How can we make these three things easier?
Transformation using concrete syntax with Spoofax on the mailing list provides some documentation on how to do this now.
Related:
Submitted by Lennart Kats on 22 March 2010 at 17:37
- Spoofax/118: Make it easy to import syntax and signatures from other Spoofax projects.
StrategoXT/826: Add a –default-syntax option to strc/strj.- Spoofax/188: Add a “clean” ant target to the build file
- Spoofax/200: Add interactive disambiguation quick fixes
- Spoofax/201: Integrate the concrete syntax mixin grammar generator
- Spoofax/218: Updates to Stratego-X.sdf only become visible after Eclipse restart
Issue Log
As of 0.5.1, projects can include a
syntax/Stratego-YOURLANG.sdffile which should automatically build into a parse table when the project is built. To use the syntax, you still need a.metafile that accompanies each.strfile where you want to use the syntax. For example, if you have adesugar.strfile, you need adesugar.metafile with the contentsMeta([Syntax("Stratego-YOURLANG")]). Just replaceYOURLANGwith the name of your language.
In addition, I had to add the ${include} directory to build.stratego.args in build.main.xml:
Log in to post comments