diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-22 03:49:29 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-22 04:05:50 +0000 |
| commit | cad64c865ae517a1d2925544e5f99ec3c414690b (patch) | |
| tree | d37dc731bcc5c1d7e79d2b9cb8e1759fa6137b6e /include | |
| parent | d603a3bab5ee07e3fe8665a7dce8c80cb391ca08 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/cps/Parser.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<StmtAST> ParseStatement(); std::unique_ptr<StmtAST> ParseStatementImpl(); + std::unique_ptr<StmtAST> ParseIncludeOrGlobal(); + std::unique_ptr<StmtAST> ParseDeleteStmt(); + std::unique_ptr<StmtAST> ParseInputStmt(); + std::unique_ptr<StmtAST> ParseOutputStmt(); std::vector<std::unique_ptr<StmtAST>> ParseBlock(std::initializer_list<int> Terminators, bool CaseBody = false); bool isCaseLabel(); bool atCaseBoundary(); |
