diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/cps/Lexer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/cps/Lexer.h b/include/cps/Lexer.h index 0ac2068..247c8d0 100644 --- a/include/cps/Lexer.h +++ b/include/cps/Lexer.h @@ -132,6 +132,9 @@ class Lexer { char Character; }; std::deque<TokenData> Lookahead; + // Reports a source error at Line (printf-style) and marks the lexer as failed. + __attribute__((format(printf, 3, 4))) + void reportError(int Line, const char *Format, ...); std::string readEscape(bool IsChar); int readToken(); TokenData captureToken(int Kind) const; |
