From 04f53b6bebfb7c4e7f589d91a8fff772204b49be Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 19 Jul 2015 00:17:43 -0700 Subject: [PATCH] Added some grammar sketch ideas to the readme --- README | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README b/README index 3c74863..a552a16 100644 --- a/README +++ b/README @@ -2,3 +2,25 @@ No-runtime-value-error-language A language wth a largely-python-like where there are no value errors. Can call null like a function + + + +Grammar: + +#comments are hashes +# newlines are equivalent to semicolons for breaking up statements + +let a = 1.3; let b = "string literal" +let c = 2 + +if a < 3 then any(); number(); of(); exprs(); else whatever(); end + +while condition; do(); whatever(); let a = 3; a; end + +#function definition +fn my_function(arg1, arg2); statements(); end + + +Keywords: +if, then, else, while, let, fn, end +