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:

  • 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
Submitted by Lennart Kats on 22 March 2010 at 17:37

On 4 August 2010 at 14:40 Lennart Kats commented:

As of 0.5.1, projects can include a syntax/Stratego-YOURLANG.sdf file which should automatically build into a parse table when the project is built. To use the syntax, you still need a .meta file that accompanies each .str file where you want to use the syntax. For example, if you have a desugar.str file, you need a desugar.meta file with the contents Meta([Syntax("Stratego-YOURLANG")]). Just replace YOURLANG with the name of your language.


On 4 August 2010 at 14:52 Zef Hemel commented:

In addition, I had to add the ${include} directory to build.stratego.args in build.main.xml:




On 3 December 2010 at 00:35 Shannon Bay tagged !bayshan

On 8 January 2013 at 12:55 Eelco Visser removed tag 1.3

On 8 January 2013 at 12:55 Eelco Visser tagged interesting

On 8 January 2013 at 16:41 Eelco Visser tagged !eelcovisser

On 8 January 2013 at 16:41 Eelco Visser removed tag interesting

On 8 January 2013 at 16:41 Eelco Visser tagged 1.3

On 13 March 2014 at 08:56 Eelco Visser removed tag 1.3

Log in to post comments