From 16231050058131860f710073c17d3bca7c6637eb Mon Sep 17 00:00:00 2001 From: _ov4 Date: Sun, 18 Oct 2026 06:05:53 +0000 Subject: feat(operators): support global binary operator overloads Resolve exact operand types and preserve declared operator return types. Reject implicit STRING to BOOLEAN conversion at typed expression boundaries. Co-Authored-By: Claude Opus 5.5 --- include/cps/Parser.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/cps/Parser.h') diff --git a/include/cps/Parser.h b/include/cps/Parser.h index f877ae6..ad80876 100644 --- a/include/cps/Parser.h +++ b/include/cps/Parser.h @@ -43,6 +43,7 @@ class Parser { std::unique_ptr ParseNumberExpr(); std::unique_ptr ParseIdentifierExpr(); + std::string ParseOperatorName(int &Op); std::unique_ptr ParseParenExpr(); std::unique_ptr ParseMemberCall( const std::string &Name, std::vector Accesses, int Line); -- cgit v1.3.1-4-g156e