From a3335110dc4f1283cf1680e273cc9775b7e8c8ac Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 20 Oct 2026 11:42:45 +0000 Subject: feat(lexer): add C_STRING literal suffix Co-Authored-By: Claude Opus 5.5 --- include/cps/AST.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/cps/AST.h') diff --git a/include/cps/AST.h b/include/cps/AST.h index 2b78aaa..bb6d090 100644 --- a/include/cps/AST.h +++ b/include/cps/AST.h @@ -51,9 +51,11 @@ public: class StringExprAST : public ExprAST { std::string Val; + bool CString; public: - StringExprAST(const std::string &Val) : Val(Val) {} + StringExprAST(const std::string &Val, bool CString = false) : Val(Val), CString(CString) {} const std::string &getVal() const { return Val; } + bool isCString() const { return CString; } }; class VariableExprAST : public ExprAST { -- cgit v1.3.1-4-g156e