diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-08-16 22:15:16 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-08-16 22:15:16 +0300 |
| commit | a06ed46bffa94e4613052e0ddf0cb70ab32651ab (patch) | |
| tree | 23e44fe30ea95af8160af2131ad471168eb6f12c /src | |
| parent | 63003d252721af56d311163afe937df771f15843 (diff) | |
| download | ek-a06ed46bffa94e4613052e0ddf0cb70ab32651ab.tar.gz ek-a06ed46bffa94e4613052e0ddf0cb70ab32651ab.zip | |
function signature type
Diffstat (limited to 'src')
| -rw-r--r-- | src/parser.y | 4 |
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; } |
