Commit Graph

70 Commits

Author SHA1 Message Date
Ilya Rezvov a30e6676ff accept only folded form of instructions inside folded forms 2018-02-23 15:00:06 -08:00
Ilya Rezvov 31735c93aa handle raw instructions properly 2018-02-23 14:52:03 -08:00
Ilya Rezvov bf67333ec1 add test case for unhandled instructions representation 2018-02-23 11:23:36 -08:00
Ilya Rezvov 62bca80a3a make validation result monoid instance 2018-02-21 20:52:46 -08:00
Ilya Rezvov 7bd2914148 add some validation checks 2018-02-21 20:14:39 -08:00
Ilya Rezvov 55a6b482ef fix mem arg parsing 2018-02-19 18:48:50 -08:00
Ilya Rezvov 6a7b82086a update readme 2018-02-19 18:41:40 -08:00
Ilya Rezvov f1eae1969a fix section parsing 2018-02-19 18:38:54 -08:00
Ilya Rezvov 928fa3a606 add deserializer for instructions and module 2018-02-19 18:36:17 -08:00
Ilya Rezvov 8dc40aa699 make serializer work correct 2018-02-19 14:30:06 -08:00
Ilya Rezvov 809d5bbf38 serialize code and data segments 2018-02-19 13:52:46 -08:00
Ilya Rezvov 37656d868a add serializer for export, start and elem sections 2018-02-19 13:31:35 -08:00
Ilya Rezvov 9d784d03bd pack/unpack int values 2018-02-19 12:52:20 -08:00
Ilya Rezvov 0029c68115 add put implememntation for insturction 2018-02-19 09:37:02 -08:00
Ilya Rezvov f9239c52ee serialize more sections 2018-02-18 22:59:02 -08:00
Ilya Rezvov 78653b911c write import section 2018-02-18 22:46:19 -08:00
Ilya Rezvov 75bdf0637f start binary format support 2018-02-18 19:03:21 -08:00
Ilya Rezvov f6a2daefcc fix tests 2018-02-18 10:20:24 -08:00
Ilya Rezvov 4f11058f4b desugarize exports 2018-02-18 10:19:12 -08:00
Ilya Rezvov 2774c04689 desugarize globals 2018-02-18 08:14:49 -08:00
Ilya Rezvov b4aae1f89f desugarize datas and elems 2018-02-17 17:45:11 -08:00
Ilya Rezvov a952a3c155 desugarize functions 2018-02-17 09:23:19 -08:00
Ilya Rezvov 4630002e36 desugarize instructions 2018-02-17 08:23:30 -08:00
Ilya Rezvov 23d83cc3fe add more desugaring 2018-02-15 21:20:29 -08:00
Ilya Rezvov 241669b1ec extract imports from module fields 2018-02-15 16:43:46 -08:00
Ilya Rezvov 4b2e6e2a91 desugarize type definitions 2018-02-15 15:30:53 -08:00
Ilya Rezvov f97441d6b0 define types for wasm internal structure and share some parts with text representation types 2018-02-14 20:21:20 -08:00
Ilya Rezvov a411ac1f52 use continuation pass style for ident propagation 2018-02-13 21:12:27 -08:00
Ilya Rezvov 33d789f239 add types exports 2018-01-26 14:00:43 -08:00
Ilya Rezvov 93a89e4470 simplify insturction type 2018-01-25 15:27:19 -08:00
Ilya Rezvov aae3401ff6 add abbreviation for memory inline data definition 2018-01-25 11:51:43 -08:00
Ilya Rezvov f547898e1f parse inline exports and imports in memory definition 2018-01-23 18:28:24 -08:00
Ilya Rezvov acd4d65027 add inline import and export parsing for globals 2018-01-23 11:40:16 -08:00
Ilya Rezvov e9e59f1a9b simplify function parsing code 2018-01-23 11:14:17 -08:00
Ilya Rezvov 23aa6d5238 remove unused rules 2018-01-23 10:33:34 -08:00
Ilya Rezvov 995d2be41d add readme 2018-01-23 09:54:18 -08:00
Ilya Rezvov a200b5a62d support inline module definitions 2018-01-23 09:42:00 -08:00
Ilya Rezvov 61c554d119 remove some unused rules 2018-01-22 21:15:30 -08:00
Ilya Rezvov b517c2bb28 improve test runner 2018-01-22 20:41:58 -08:00
Ilya Rezvov 5618f59cc3 add more test files 2018-01-22 20:16:05 -08:00
Ilya Rezvov 0b593a4a8c fix block, loop and if folded forms parsing 2018-01-22 18:39:53 -08:00
Ilya Rezvov e78f07a19f parse if folded form correct 2018-01-22 18:21:28 -08:00
Ilya Rezvov f26c0e305d handle folded inderect_call on higher level due to grammar ambiguites 2018-01-22 17:24:04 -08:00
Ilya Rezvov 6f61f2fd1d support abbreviated forms for tables 2018-01-22 15:42:19 -08:00
Ilya Rezvov 64fb4c0a35 support part of tables abbreviations 2018-01-22 15:18:18 -08:00
Ilya Rezvov 4980993487 parse inline exports in functions 2018-01-22 13:52:36 -08:00
Ilya Rezvov fb58259ab2 support inline imports in function definitions 2018-01-22 13:05:00 -08:00
Ilya Rezvov 058962a831 parse functions body 2018-01-21 18:28:30 -08:00
Ilya Rezvov c537fa13e2 factorize typeuse rule 2018-01-21 12:21:44 -08:00
Ilya Rezvov 91ceecb51e improve parsing error message 2018-01-21 10:14:32 -08:00