diff --git a/README.md b/README.md index cb9af0a..26f5296 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,35 @@ A type inferred, statically-typed functional programming language inspired by OC ## Documentation -- TODO +### Syntax +```bnf + ::= words + + ::= + | + | "let" (*)? "=" + | "let" "=" "in" + | "if" "then" "else" + | "fun" + "->" + | ()+ + + ::= "+" | "++" | "-" | "*" | "/" | "%" | "@" | "::" | "==" | "!=" | "<" | "<=" | ">" | ">=" + + ::= + | + | "[" ? "]" + | int ".." int + | "(" ")" + + ::= (";" )? + + ::= int + | char + | str + | unit + | true + | false +``` ## Running