From 699e18b65b07af73ccd14b28f83572b1843c7d37 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Wed, 14 Oct 2026 03:29:04 +0000 Subject: feat(types): add native C scalar types and imported aliases Co-Authored-By: Claude Fable 5.1 --- lib/Parser/Parser.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib/Parser/Parser.cc') diff --git a/lib/Parser/Parser.cc b/lib/Parser/Parser.cc index aeb81fe..3bc095e 100644 --- a/lib/Parser/Parser.cc +++ b/lib/Parser/Parser.cc @@ -112,6 +112,13 @@ bool Parser::ParseDesignatorSuffix(std::vector &Out) { } std::string Parser::ParseTypeName(bool AllowVoid) { + switch (CurTok) { + case tok_c_int: getNextToken(); return "C_INT"; + case tok_c_char: getNextToken(); return "C_CHAR"; + case tok_c_string: getNextToken(); return "C_STRING"; + case tok_c_double: getNextToken(); return "C_DOUBLE"; + default: break; + } if (CurTok == tok_integer_kw) { getNextToken(); return "INTEGER"; -- cgit v1.3.1-4-g156e