Open ghost opened 6 years ago
The error message comes from Bison. $undefined
typically means that the parsed character is not defined in the grammar. In this particular case it's a bit odd since we do define the parenthesis token.
While it could be improved, I'd say that the grammar for the variable names is typically simple enough that it's not hard to manually find the cause.
An easy fix might be to bump Bison version though.
The messages generated by the structured naming check could be more informative. Example of a current message with little information on what is actually wrong:
[ERROR][FMI2XML] Invalid structured ScalarVariable name "Rectifier_r(60)": syntax error, unexpected $undefined, expecting $end
.