diff --git a/compiler2/ttcn3/compiler.y b/compiler2/ttcn3/compiler.y index 476095e5d8db49c00fe8153409e3574b42841ca9..f6354285949eb3765f2e46c0d8c112c9dba3ecbd 100644 --- a/compiler2/ttcn3/compiler.y +++ b/compiler2/ttcn3/compiler.y @@ -130,7 +130,6 @@ static const string anyname("anytype"); bool bool_val; /* boolean value */ char *str; /* simple string value */ unsigned char uchar_val; - int_val_t *int_val; /* integer value */ Real float_val; /* float value */ Identifier *id; @@ -1867,7 +1866,7 @@ optDecodedModifier %left '*' '/' ModKeyword RemKeyword %left UnarySign -%expect 63 +%expect 66 %start GrammarRoot @@ -3879,6 +3878,11 @@ ValueOrAttribList: // 142 is a Templates* $$ = $5; $$->add_front_t($2); } +| '(' TemplateListElem optError ')' + { + $$ = new Templates; + $$->add_front_t($2); + } | '(' error TemplateListElem optError ',' seqValueOrAttrib optError ')' { $$ = $6;