47 |
# define register |
# define register |
48 |
#endif |
#endif |
49 |
|
|
50 |
// if compiled for debugging, throw an exception instead of exiting on fatal |
// Since this parser is solely used by script code editors, thus not used in a |
51 |
|
// real-time context, always throw an exception instead of exiting on fatal |
52 |
// lexer errors (so the debugger may pause with the appropriate back trace) |
// lexer errors (so the debugger may pause with the appropriate back trace) |
53 |
#if DEBUG |
#include <stdexcept> |
54 |
# include <stdexcept> |
#define YY_FATAL_ERROR(msg) throw std::runtime_error(msg) |
|
# define YY_FATAL_ERROR(msg) throw std::runtime_error(msg) |
|
|
#endif |
|
55 |
|
|
56 |
%} |
%} |
57 |
|
|