| 1 |
Syntax: bf(%tag-mismatches) tt(on|off) |
| 2 |
|
| 3 |
This directive is only interpreted when polymorphic semantic values are |
| 4 |
used. When tt(on) is specified (which is used by default) the tt(parse) member |
| 5 |
of the generated parser dynamically checks that the tag used when calling a |
| 6 |
semantic value's tt(get) member matches the actual tag of the semantic value. |
| 7 |
|
| 8 |
If a mismatch is observed, then the parsing function aborts after displaying a |
| 9 |
fatal error message. If this happens, and if the option/directive tt(debug) |
| 10 |
was specified when bic() created the parser's parsing function, then the |
| 11 |
program can be rerun, specifying tt(parser.setDebug(Parser::ACTIONCASES)) |
| 12 |
before calling the parsing function. As a result the case-entry numbers of the |
| 13 |
tt(switch), defined in the parser's tt(executeAction) member, are inserted |
| 14 |
into the standard output stream. The action case number reported just before |
| 15 |
the program displays the fatal error message tells you in which of the |
| 16 |
grammar's action block the error was encountered. |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|