173 Commits

Author SHA1 Message Date
Erik Stenman
fccc570bee
Pt 164259596 generate format op (#10)
* Generate code for fate ops from spec.

* Generate the code from the makefile. Remove generated files.

* Test targets and cleanup.

* Spell eunit the right way.

* Use test target for ci.

* Renumber opcodes. Add primops.

* Generate tokens in scanner from definitions.

* Rename NUMBER op to GENERATION and add MICROBLOCK instruction.

* Since Tag < Size, Size cannot be zero

* unit is printed `()`

* Formatting differently

* Add eqc profile

* Generate code for fate ops from spec.

* Generate the code from the makefile. Remove generated files.

* Test targets and cleanup.

* Generate op pretty printer.

* Removed unused function.

* Polish Makefile file references (#11)

* Parse all types of values except variants.
2019-02-28 19:18:25 +01:00
Erik Stenman
8fc929b1ee
Pt 164259596 generate fate ops (#9)
* Generate code for fate ops from spec.

* Generate the code from the makefile. Remove generated files.

* Test targets and cleanup.

* Spell eunit the right way.

* Use test target for ci.

* Renumber opcodes. Add primops.

* Generate tokens in scanner from definitions.

* Rename NUMBER op to GENERATION and add MICROBLOCK instruction.
2019-02-28 11:24:13 +01:00
Erik Stenman
01ae99f7e8
Removed unused enacl lib. Use eblake2 for hash. (#8)
* Removed unused lib.

* Replace local blake2 implementation with eblake2.

* Add eblake2 dep to app file.

* Add eblake2 to rebar config.

* Use hex for eblake2.

* Bump version.

* Replace local rlp with aeserialization repo. Use ref till first release is available.

* Remove unused vars.
2019-02-26 08:53:46 +01:00
Erik Stenman
a35307f61b Add annotations (comments) to bytecode. Add strip function to remove symboltable and annotations from bytecode. 2019-02-25 07:57:08 +01:00
Erik Stenman
d04a827f05 Add fate code pretty printer. Add symbol table to binary. Add tests of rundtrip serialization and deserialization. 2019-02-23 22:13:19 +01:00
Erik Stenman
3c056db0b5 Cleanup. 2019-02-20 14:06:11 +01:00
Erik Stenman
5e9d34849f Explicit export. 2019-02-20 11:37:43 +01:00
Erik Stenman
c0f2ac3163 Instructions are uppercase. 2019-02-20 09:49:11 +01:00
Erik Stenman
ce33ba8818 Add new instructions. 2019-02-19 12:15:01 +01:00
Erik Stenman
3ddae5e674 Code generation api. 2019-02-19 11:50:23 +01:00
Erik Stenman
7b671d2187 Lexer for inc and switch. 2019-02-18 18:13:40 +01:00
Erik Stenman
16644ded72 Handle most ops. 2019-02-18 18:09:00 +01:00
Erik Stenman
08e169c3b2 New format for functions, signatures and code. 2019-02-15 16:14:20 +01:00
Erik Stenman
18eb37a8c5 Fix function_call. 2019-02-15 15:38:34 +01:00
Erik Stenman
b95827b2d0 Parse call. 2019-02-15 14:34:32 +01:00
Erik Stenman
afdb78b933 Fix erros found by dialyzer and warnings. 2019-02-15 13:47:40 +01:00
Erik Stenman
c5a9878bd9 Rename to library standard. 2019-02-15 12:34:46 +01:00
Erik Stenman
e6623bd252 Merge branch 'fortuna' of github.com:aeternity/aebytecode into fortuna 2019-02-15 11:33:32 +01:00
Erik Stenman
37f97e3837 Bump version. 2019-02-15 11:33:13 +01:00
Erik Stenman
a539378405
Pt 162805963 fate opcodes (#6)
* First iteration of assembler.
* Stand alone assembler.
2019-02-15 11:24:25 +01:00
Hans Svensson
720510a24d SHL, SHR and SAR in three more places... 2019-01-22 21:44:55 +01:00
Hans Svensson
0585e7d0f6 Add CRYPT primop range and ECVERIVY primp 2019-01-21 11:05:35 +01:00
Thomas Arts
2269a01e18 Copy respository files and add rebar.config 2018-12-21 10:27:02 +01:00