diff --git a/example/ex.hyc b/example/ex.hyc index b6302eb..538e40d 100644 --- a/example/ex.hyc +++ b/example/ex.hyc @@ -1,5 +1,5 @@ fun foo a b = a * b; -let bar = foo(3, 3); +let bar = foo( 3 3 ); if bar == 9 then do diff --git a/let.cmi b/let.cmi new file mode 100644 index 0000000..c066624 Binary files /dev/null and b/let.cmi differ diff --git a/let.cmo b/let.cmo new file mode 100644 index 0000000..738f282 Binary files /dev/null and b/let.cmo differ diff --git a/src/front/parse.rs b/src/front/parse.rs index a39a9bb..23308df 100644 --- a/src/front/parse.rs +++ b/src/front/parse.rs @@ -149,9 +149,7 @@ fn expr_parser() -> impl Parser> + Clone { }).labelled("literal"); let args = expr.clone() - .chain(just(Token::Comma) - .ignore_then(expr.clone()).repeated()) - .then_ignore(just(Token::Comma).or_not()) + .repeated() .or_not() .map(|item| item.unwrap_or_else(Vec::new));