Update Sophia syntax docs to include missing information about existing syntax (#405)

* Add main contract, contract interface, and guards to the docs syntax

* Use Sep1 instead of Sep for the GuardedDef

* Add guarded case for switches

* Change '=' to '::=' in GuardedDef

* Add Using

* Add '|>' binary operator to aeso_syntax

* Add assign patter

* Fix typos

* Add polymorphism implmented interface syntax
This commit is contained in:
Gaith Hallak
2022-08-04 00:25:42 +04:00
committed by GitHub
parent c98ea25e8b
commit 8d8d9c6b83
2 changed files with 28 additions and 10 deletions
+1 -1
View File
@@ -106,7 +106,7 @@
-type bin_op() :: '+' | '-' | '*' | '/' | mod | '^'
| '++' | '::' | '<' | '>' | '=<' | '>=' | '==' | '!='
| '||' | '&&' | '..'.
| '||' | '&&' | '..' | '|>'.
-type un_op() :: '-' | '!'.
-type expr()