Commit Graph

308 Commits

Author SHA1 Message Date
Ilya Rezvov fa1d9a7bd1 handle more parsing edgecases 2021-04-07 10:35:51 -07:00
Ilya Rezvov 93a79badbe fix multivalue return typecheck and some execution rules 2021-04-06 23:20:03 -07:00
Ilya Rezvov 604f8f190d start the validator refactoring to deal with multiresults 2021-04-05 22:10:45 -07:00
Ilya Rezvov ee1c7d3f7a resolve all grammar conflicts 2021-04-05 21:03:55 -07:00
Ilya Rezvov 88e80306b7 simplify typeuse rule 2021-04-05 10:31:29 -07:00
Ilya Rezvov d20985c890 Merge branch 'update-tests' of github.com:SPY/haskell-wasm into update-tests 2021-04-04 17:34:24 -07:00
Ilya Rezvov fe83e2c1a3 rebase artefacts 2021-04-04 17:34:03 -07:00
Ilya Rezvov cd834466a4 remove redundant clauses 2021-04-04 17:30:38 -07:00
Ilya Rezvov afb5cb4f05 fix imports 2021-04-04 17:30:38 -07:00
Ilya Rezvov d4a72089ba get rid of some rules 2021-04-04 17:30:38 -07:00
Ilya Rezvov d62f945b8b instuction_list parser 2021-04-04 17:30:38 -07:00
Ilya Rezvov b816e04b6d type signature parsing for loop and if blocks 2021-04-04 17:30:38 -07:00
Ilya Rezvov 2d58addefa refactor function parser 2021-04-04 17:30:38 -07:00
Ilya Rezvov 58fd11dfa8 refactor typeuse parser to accomodate raw instructions 2021-04-04 17:30:38 -07:00
Ilya Rezvov 72804d2210 get rid of some shift/reduce conflicts in grammar 2021-04-04 17:30:38 -07:00
Ilya Rezvov b64193b6a9 clean up the parser a little bit and relax arity checks on validation phase 2021-04-04 17:30:38 -07:00
Ilya Rezvov 2a49528a1f simplify grammar and parse block typeuses 2021-04-04 17:30:38 -07:00
Ilya Rezvov 2082a8557f start multivalue proposal implementation for block instruction 2021-04-04 17:30:38 -07:00
Ilya Rezvov f92754b572 change instansiating to be stateful 2021-04-04 17:30:17 -07:00
Ilya Rezvov 2451dc2ddc added line position for failed asserts and implemented mutable globals import/export proposal 2021-04-04 17:29:47 -07:00
Ilya Rezvov ea7769aa9f more grammar fixes 2021-04-04 17:28:16 -07:00
Ilya Rezvov b1874dfcea start multivalue proposal implementation for block instruction 2021-04-04 17:23:43 -07:00
Ilya Rezvov 511bae84e8 report multiple start sections in text representation as parsing error 2021-04-04 17:23:43 -07:00
Ilya Rezvov 1e7afd94fc change instansiating to be stateful 2021-04-04 17:23:43 -07:00
Ilya Rezvov 01e0ab8d44 added line position for failed asserts and implemented mutable globals import/export proposal 2021-04-04 17:23:43 -07:00
Ilya Rezvov 20c2623b1c fix align bug for I64Load32U and start mutable globals export/import proposal 2021-04-04 17:23:43 -07:00
Ilya Rezvov d61926e18a implement sign-extension operators proposal 2021-04-04 17:23:43 -07:00
Ilya Rezvov 4fb4da0f2f more grammar fixes 2021-04-04 17:23:43 -07:00
Ilya Rezvov d01691338f add parsing of canonical nan, reinterpret instructions and check for mem idents uniqueness 2021-04-04 17:23:43 -07:00
Ilya Rezvov 88a31548b8 replace hardcoded tests with submodule to the official testsuit 2021-04-04 17:23:43 -07:00
Ilya Rezvov bbd09ecf4f remove redundant clauses 2021-04-04 17:19:25 -07:00
Ilya Rezvov 52b2a11887 fix imports 2021-04-04 17:11:07 -07:00
Ilya Rezvov 53b145399d get rid of some rules 2021-04-04 16:25:22 -07:00
Ilya Rezvov 1202fc50f9 instuction_list parser 2021-04-04 15:30:57 -07:00
Ilya Rezvov 47b6b546ef type signature parsing for loop and if blocks 2021-04-04 13:56:40 -07:00
Ilya Rezvov 057b490864 refactor function parser 2021-04-01 21:30:58 -07:00
Ilya Rezvov f3415a611f refactor typeuse parser to accomodate raw instructions 2021-03-29 21:56:25 -07:00
Ilya Rezvov bb881f7ee8 Merge pull request #18 from GaloisInc/ver1_0_1_0
Update to cabal file instead of hpack package.yaml
2021-03-26 09:35:36 -06:00
Kevin Quick df75bd4791 Remove package.yaml and hpack dependency: use a standard cabal file. 2021-03-25 17:06:15 -07:00
Kevin Quick 1bea1756a3 Remove unneeded (and conflicting) test dependencies. 2021-03-25 12:58:10 -07:00
Kevin Quick 366a04eebc Update version of git source to be greater than the hackage version.
Helps ensure dependency resolution will choose the git version (if
available) over the hackage version.
2021-03-25 10:21:25 -07:00
Ilya Rezvov a6692fdef9 get rid of some shift/reduce conflicts in grammar 2021-03-19 22:25:47 -07:00
Ilya Rezvov 03f9386c8a clean up the parser a little bit and relax arity checks on validation phase 2021-03-17 22:34:50 -07:00
Ilya Rezvov d5664908d1 simplify grammar and parse block typeuses 2021-03-16 23:45:43 -07:00
Ilya Rezvov a466bb0135 Merge branch 'update-tests' of github.com:SPY/haskell-wasm into update-tests 2021-03-16 21:49:35 -07:00
Ilya Rezvov 4b670b3d17 start multivalue proposal implementation for block instruction 2021-03-16 21:49:02 -07:00
Ilya Rezvov 66e86754b0 report multiple start sections in text representation as parsing error 2021-03-16 21:49:02 -07:00
Ilya Rezvov 016ec83422 change instansiating to be stateful 2021-03-16 21:49:02 -07:00
Ilya Rezvov 252ced4989 added line position for failed asserts and implemented mutable globals import/export proposal 2021-03-16 21:49:02 -07:00
Ilya Rezvov 02e2c4a705 fix align bug for I64Load32U and start mutable globals export/import proposal 2021-03-16 21:49:02 -07:00