aboutsummaryrefslogtreecommitdiff
path: root/src/parser.y
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2023-08-16 22:15:16 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2023-08-16 22:15:16 +0300
commita06ed46bffa94e4613052e0ddf0cb70ab32651ab (patch)
tree23e44fe30ea95af8160af2131ad471168eb6f12c /src/parser.y
parent63003d252721af56d311163afe937df771f15843 (diff)
downloadek-a06ed46bffa94e4613052e0ddf0cb70ab32651ab.tar.gz
ek-a06ed46bffa94e4613052e0ddf0cb70ab32651ab.zip
function signature type
Diffstat (limited to 'src/parser.y')
-rw-r--r--src/parser.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser.y b/src/parser.y
index b604350..986c47e 100644
--- a/src/parser.y
+++ b/src/parser.y
@@ -572,7 +572,9 @@ func_sign
type
: id { $$ = gen_type(AST_TYPE_ID, $1, NULL, NULL); }
- | "@" func_sign {
+ | "::" func_sign {
+ /* still not entirely sold on this signature, but it's not terrible I
+ * guess */
$$ = gen_type(AST_TYPE_POINTER, NULL, NULL, NULL);
$$->_type.next = $2;
}