We have a minimal MiniJava project for the lab with just a single grammar rule. Building this project with the nightly builds fails, because sdf-parenthesize is missing priorities in the grammar.

sdf2parenthesize.helper:
        [java] [ org.strategoxt.tools.main-sdf2parenthesize | info ] SDF main module is MiniJava
        [java] [ org.strategoxt.tools.main-sdf2parenthesize | info ] Name of output module is include/MiniJava-parenthesize
        [java] [ org.strategoxt.tools.main-sdf2parenthesize | info ] Main strategy is io-MiniJava-parenthesize
        [java] [ org.strategoxt.tools.main-sdf2parenthesize | info ] Name of signature module is include/MiniJava
        [java] [ org.strategoxt.tools.main-sdf2parenthesize | info ] Language name is MiniJava
        [java] [ org.strategoxt.tools.main-sdf2parenthesize | info ] Name of parenthesize rules is MiniJavaParenthesize
        [java] Invoking native tool /Users/guwac/Applications/indigos/spoofax nightly/plugins/org.strategoxt.imp.nativebundle_0.1.1.201109122133/native/macosx/sdf2table ["-m", "MiniJava", "-i", "/Users/guwac/Documents/EclipseWorkspaces/IN4303/MiniJava/include/MiniJava.def", "-o", "/var/folders/lv/vm4rw3853gd2lm_8873cp0g40000gn/T/StrategoXT7134473623850138568.tmp"]
        [java] [ org.strategoxt.tools.main-sdf2parenthesize | error ] No priorities in parse table. Did you specify the right main module?
        [java] org.strategoxt.tools.main-sdf2parenthesize: rewriting failed
Submitted by Guido Wachsmuth on 13 September 2011 at 09:05

On 13 September 2011 at 18:37 Lennart Kats commented:

Yes, there should really be a fallback target like ppgen.helper.fallback. Or sdf-parenthesize should be changed to handle this case.


On 14 September 2011 at 22:49 Lennart Kats tagged @maartje

On 14 September 2011 at 22:49 Lennart Kats tagged generator

On 22 September 2011 at 17:47 Maartje commented:

fixed with fallback target


On 22 September 2011 at 17:47 Maartje closed this issue.

On 22 December 2011 at 16:56 Lennart Kats tagged 1.0

Log in to post comments