Pt 164325512 variant constants (#13)

* Handle varaint constants and types.

* Format Readme.

* Format Readme step 2.

* Format Readme step 3.

* Format Readme step 4.

* Format Readme step 5.

* Update src/aeb_fate_asm.erl

Co-Authored-By: happi <happi@stenmans.org>

* Update README.md

Co-Authored-By: happi <happi@stenmans.org>

* Get rid of size from varaint type representation.
This commit is contained in:
Erik Stenman
2019-03-01 13:05:24 +01:00
committed by GitHub
parent 20c8fbabc9
commit 6f67da1292
5 changed files with 231 additions and 47 deletions
+5
View File
@@ -65,4 +65,9 @@ FUNCTION tuple() : {tuple, [integer, boolean, string, {tuple, [integer, integer]
RETURNR (42, true, "FooBar", (1, 2))
FUNCTION address() : address
RETURNR #deadbeef
;; Option(integer) = NONE | SOME(integer)
FUNCTION varaint() : {variant, [{tuple, []}, {tuple, [integer]}]}
RETURNR #deadbeef