From a6b336d84cbdabb45b6a4159325dc9751288a9da Mon Sep 17 00:00:00 2001 From: greg Date: Mon, 11 Sep 2017 23:16:37 -0700 Subject: [PATCH] type anno EBNF --- src/schala_lang/parsing.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/schala_lang/parsing.rs b/src/schala_lang/parsing.rs index d8a1a2d..d09b5fa 100644 --- a/src/schala_lang/parsing.rs +++ b/src/schala_lang/parsing.rs @@ -290,6 +290,8 @@ func_declaration := FN identifier LParen param_list RParen param_list := (identifier type_anno+ Comma)* +type_anno := Colon type + expression := primary primary := literal literal := TRUE | FALSE | number_literal | str_literal