From 684fadb0eb3e6a7dc274d6ed26abd28d5787d60d Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 1 Jul 2018 10:55:31 +0300 Subject: [PATCH] Recognize in and out qualifiers for function parameters --- source/programparser.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/programparser.cpp b/source/programparser.cpp index e7343547..f38f3909 100644 --- a/source/programparser.cpp +++ b/source/programparser.cpp @@ -770,6 +770,9 @@ RefPtr ProgramParser::parse_function_declaration() expect(","); RefPtr var = new VariableDeclaration; + string token = peek_token(); + if(token=="in" || token=="out" || token=="inout") + var->interface = parse_token(); var->type = expect_type(); var->name = expect_identifier(); func->parameters.push_back(var); -- 2.45.2