Single literal-token in brackets in SDF grammar rule produces build error
With the grammar:
exportscontext-free start-symbols
Startcontext-free syntax
"module" ID Gal-expr -> Start {cons("Module")} (Unit-decl ".")* -> Gal-expr {cons("GalExpr")} Unit-type-name Unit-type-def -> Unit-decl {cons("UnitDecl")} ID -> Unit-type-name {cons("UnitTypeName")} "a" "gal:unit" ";" Content -> Unit-type-def {cons("UnitTypeDef")} "gal:contains" "(" ( "[" ( "Attr-def" ) "]" )* ")" -> Content {cons("Content")}
I get “build.generated.xml:267: Java returned 1”
While changing the last rule to:
“gal:contains” “(” ( “[" ( Attr-def ) "]” )* “)”
-> Content {cons(“Content”)}
or
“gal:contains” “(” ( “[" ( “Attr-def” ID ) "]” )* “)”
-> Content {cons(“Content”)}
(with Attr-def defined of course)I get no errors.
Submitted by Tim on 12 May 2010 at 14:03
Issue Log
On 12 May 2010 at 14:42 Lennart Kats commented:
That’s not good. This seems to be caused by sdf2rtg and/or rtg2sig. I’ll move this bug to the StrategoXT bug tracker.
On 12 May 2010 at 14:43 YellowGrass commented:
Issue has been moved to StrategoXT / Issue 817
Log in to post comments