poorna2152 / nballerina

WebAssembly Backend for the nBallerina compiler
https://ballerina.io/
Apache License 2.0
4 stars 0 forks source link

`wback` subset01 implementation #11

Closed poorna2152 closed 2 years ago

poorna2152 commented 2 years ago

Following tests are failing at the moment,

manuranga commented 2 years ago

Just for the record: assign8-v.bal and rel-v.bal are there in the subset 1 by a mistake.

Need to fix p cases by throwing an exception. Any function that blows up wasm execution should work, no need to wait for exceptions proposal form wasm.

poorna2152 commented 2 years ago

equal-v.bal failing: function return type set to any in this testcase and calls printlnwith boolean

poorna2152 commented 2 years ago

Expression record type holds an array of tokens instead of a string. This tokens are later joined in creating the wat file. The sub types of Expression WasmBlock, WasmLoop, If and Break in the previous code were removed.