From a91bd145008432fb8c5d91d94ab6f50473a277f5 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 27 Oct 2026 13:55:36 +0000 Subject: feat(preprocessor): add file-local conditional switches Co-Authored-By: Claude Opus 5.5 --- lib/Lexer/Lexer.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/Lexer/Lexer.cc') diff --git a/lib/Lexer/Lexer.cc b/lib/Lexer/Lexer.cc index 885f432..5bf2230 100644 --- a/lib/Lexer/Lexer.cc +++ b/lib/Lexer/Lexer.cc @@ -14,6 +14,11 @@ using namespace cps; namespace { const std::unordered_map Keywords = { + {"PP_DEFINE", tok_pp_define}, + {"PP_UNDEF", tok_pp_undef}, + {"PP_IFDEF", tok_pp_ifdef}, + {"PP_IFNDEF", tok_pp_ifndef}, + {"PP_ENDIF", tok_pp_endif}, {"CONSTANT", tok_constant}, {"INCLUDE", tok_include}, {"INCLUDE_OBJ", tok_include_obj}, -- cgit v1.3.1-4-g156e