Commit 3a68fa98 authored by Arpad Lovassy's avatar Arpad Lovassy
Browse files

Fixed parser to show specific syntax error msg instead of ANTLR msg


Signed-off-by: Arpad Lovassy's avatarzlovarp <arpad.lovassy@semcon.com>
parent 80e0da6e
......@@ -1061,10 +1061,12 @@ pr_UnionDefBody[CompFieldMap compFieldMap] returns[Identifier identifier]
| ADDRESS { $identifier = new Identifier(Identifier_type.ID_TTCN, "address", getLocation( $ADDRESS)); }
)
( begin = pr_BeginChar
c = pr_UnionFieldDef { compFieldMap.addComp($c.compField); }
( pr_Comma
c = pr_UnionFieldDef { compFieldMap.addComp($c.compField); }
)*
( { reportError( "Union must have at least one field", $begin.start, $begin.stop ); }
| c = pr_UnionFieldDef { compFieldMap.addComp($c.compField); }
( pr_Comma
c = pr_UnionFieldDef { compFieldMap.addComp($c.compField); }
)*
)
endcol = pr_EndChar
)
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment