From cad64c865ae517a1d2925544e5f99ec3c414690b Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 03:49:29 +0000 Subject: refactor(parser): extract INCLUDE/GLOBAL, DELETE, INPUT and OUTPUT parsing Move the self-contained arms of ParseStatementImpl into ParseIncludeOrGlobal, ParseDeleteStmt, ParseInputStmt and ParseOutputStmt without changing their bodies. Co-Authored-By: Claude Opus 5.5 --- include/cps/Parser.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/cps/Parser.h b/include/cps/Parser.h index 9bf8afb..cf27234 100644 --- a/include/cps/Parser.h +++ b/include/cps/Parser.h @@ -58,6 +58,10 @@ class Parser { std::unique_ptr ParseStatement(); std::unique_ptr ParseStatementImpl(); + std::unique_ptr ParseIncludeOrGlobal(); + std::unique_ptr ParseDeleteStmt(); + std::unique_ptr ParseInputStmt(); + std::unique_ptr ParseOutputStmt(); std::vector> ParseBlock(std::initializer_list Terminators, bool CaseBody = false); bool isCaseLabel(); bool atCaseBoundary(); -- cgit v1.3.1-4-g156e