From 7f19cf1700ec1732469aa57596c53b2f5b08468f Mon Sep 17 00:00:00 2001 From: Gaith Hallak Date: Wed, 1 Jun 2022 14:38:16 +0400 Subject: [PATCH] Update the docs --- docs/sophia_syntax.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/sophia_syntax.md b/docs/sophia_syntax.md index b9c6aa0..a55fa60 100644 --- a/docs/sophia_syntax.md +++ b/docs/sophia_syntax.md @@ -200,6 +200,7 @@ switch(f(x)) ```c Expr ::= '(' LamArgs ')' '=>' Block(Stmt) // Anonymous function (x) => x + 1 + | '(' BinOp ')' // Operator lambda (+) | 'if' '(' Expr ')' Expr 'else' Expr // If expression if(x < y) y else x | Expr ':' Type // Type annotation 5 : int | Expr BinOp Expr // Binary operator x + y