diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-17 10:30:02 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-17 10:30:02 +0000 |
| commit | f5246db6d045ffb86d6717e1b1c37f03bcb2b75b (patch) | |
| tree | 468f4fba2e7ef75f29f90fd64af7d4e1fe05f50f /include/cps/Parser.h | |
| parent | 066a378ca09ccc5d8074a942cf4bf1b9d4f40729 (diff) | |
feat(parser): parse OVERLOAD prefix on FUNCTION and PROCEDURE
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/Parser.h')
| -rw-r--r-- | include/cps/Parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cps/Parser.h b/include/cps/Parser.h index 9a53e95..d9e8358 100644 --- a/include/cps/Parser.h +++ b/include/cps/Parser.h @@ -73,8 +73,8 @@ class Parser { std::vector<std::unique_ptr<FunctionDefAST>> *Methods = nullptr); bool ParseRecordField(std::vector<RecordFieldDecl> &Out, bool IsPublic); - std::unique_ptr<FunctionDefAST> ParseFunction(const std::string &OwnerClass = {}, bool IsPublic = true); - std::unique_ptr<FunctionDefAST> ParseProcedure(const std::string &OwnerClass = {}, bool IsPublic = true); + std::unique_ptr<FunctionDefAST> ParseFunction(const std::string &OwnerClass = {}, bool IsPublic = true, bool IsOverload = false); + std::unique_ptr<FunctionDefAST> ParseProcedure(const std::string &OwnerClass = {}, bool IsPublic = true, bool IsOverload = false); std::unique_ptr<StmtAST> ParseCallStmt(); std::unique_ptr<StmtAST> ParseReturnStmt(); std::optional<std::vector<ParamDecl>> ParsePrototypeArgs(bool AllowByRef); |
