minor fix
[cdsspec-compiler.git] / grammer / util.jj
index 901e2e6f6fac466097a50336d768546f5f50a9fa..5b5446bb9c102c3882efd813cab07652ea4687be 100644 (file)
@@ -280,7 +280,10 @@ String Type() :
        (<CONST>
        { type = "const"; }
        )?
-       (((str = <STRUCT>.image | str = <CLASS>.image | str = <UNSIGNED>.image) { type = type + " " + str; })? 
+       (
+               ((str = <STRUCT>.image | str = <CLASS>.image | str = <UNSIGNED>.image) {
+               type = type.equals("") ? type + str : type + " " + str;
+               })? 
        (
        name = ParseQualifiedName() {
                if (!type.equals(""))