aboutsummaryrefslogtreecommitdiff
path: root/include/cps/Parser.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cps/Parser.h')
-rw-r--r--include/cps/Parser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/cps/Parser.h b/include/cps/Parser.h
index 49f418c..7344015 100644
--- a/include/cps/Parser.h
+++ b/include/cps/Parser.h
@@ -49,7 +49,9 @@ class Parser {
bool ParseDesignatorSuffix(std::vector<DesignatorAccess> &Out);
std::unique_ptr<StmtAST> ParseTypeDecl();
- bool ParseRecordField(std::vector<RecordFieldDecl> &Out);
+ std::optional<std::vector<RecordFieldDecl>> ParseRecordBody(
+ const std::string &Name, int Line, int EndToken);
+ bool ParseRecordField(std::vector<RecordFieldDecl> &Out, bool IsPublic);
std::unique_ptr<StmtAST> ParseFunction();
std::unique_ptr<StmtAST> ParseProcedure();