hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 4ee6c10872cd9f806de6d9a936e7944552802a49
parent 0248090770511748312ab249bd59eb91351f7f25
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu, 14 Sep 2023 00:06:04 -0400

hare::parse: disallow comma after ... in prototype

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mhare/parse/type.ha | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git a/hare/parse/type.ha b/hare/parse/type.ha @@ -19,7 +19,6 @@ fn prototype(lexer: *lex::lexer) (ast::func_type | error) = { yield void; case lex::token => variadism = ast::variadism::C; - try(lexer, ltok::COMMA)?; want(lexer, ltok::RPAREN)?; break; }; @@ -49,7 +48,6 @@ fn prototype(lexer: *lex::lexer) (ast::func_type | error) = { yield void; case lex::token => variadism = ast::variadism::HARE; - try(lexer, ltok::COMMA)?; want(lexer, ltok::RPAREN)?; break; };