Closed GoogleCodeExporter closed 9 years ago
This is a common problem with ANTLR-based DSLs (and Xtext is based on ANTLR).
The lexer will identify "error" as keyword, the parser of Franca expects an ID,
not a keyword. This may occur with any ID (e.g., method name, struct element,
etc.) and any keyword.
Fortunately, there is a simple solution: If the clash occurs, the identifier
has to be escaped by a ^ sign, this tells the lexer that this is no keyword,
but an ID. Excerpt from your example:
in
{
am.am_Handle_s handle
am.am_connectionID_t connectionID
am.am_Error_e ^error
}
Original comment by klaus.birken@gmail.com
on 21 Jan 2013 at 12:27
Original issue reported on code.google.com by
manfred....@bmw.de
on 21 Jan 2013 at 11:51Attachments: