Added some grammar sketch ideas to the readme
This commit is contained in:
parent
2aaa600d53
commit
04f53b6beb
22
README
22
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user