Skip to content

Commit

Permalink
Begin Working On User Operators (#59)
Browse files Browse the repository at this point in the history
* Support Features For malloc

* Progress Towards Malloc

* Add Supports For Custom Operators

* Function Based Operators

* Very Basic User Operators

* Progress Towards Malloc

* Add Supports For Custom Operators

* Function Based Operators

* Very Basic User Operators
  • Loading branch information
spotandjake authored Nov 9, 2022
1 parent 4180037 commit 265b42e
Show file tree
Hide file tree
Showing 25 changed files with 2,997 additions and 2,421 deletions.
5 changes: 2 additions & 3 deletions Documentation/TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@
+ [x] Implement Generics
+ [ ] Implement Match Syntax
+ [x] Allow you to access members on general expressions
+ [ ] Allow u to define multiple variables off one `let` or `const` using `,`
+ [ ] Implement Destructuring
+ [ ] Implement Array Literals
+ [ ] Implement Array Spread
+ [x] Implement Array Literal Syntax
+ [ ] Implement Array Index Syntax
+ [ ] Document Language Grammar
+ [ ] Start Writing Our Wasm Builder
+ [ ] Look into creating our own wasm ir using https://github.com/iden3/wasmbuilder/blob/master/src/codebuilder.js instead of using binaryen for raw codegen
+ [x] Start Writing Our Wasm Builder
+ [x] Look into creating our own wasm ir using https://github.com/iden3/wasmbuilder/blob/master/src/codebuilder.js instead of using binaryen for raw codegen
+ [ ] Tasks For Day 2
+ [ ] Write New Tests Based On The Improvements To The Compiler
+ [ ] Unary Operators
Expand Down
2 changes: 1 addition & 1 deletion __tests__/Data/Parser/Literals_Pass.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __tests__/Data/Parser/Parser_Pass.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion __tests__/Tests/WasmBuilder/Expression.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,13 @@ test('WasmBuilder-Expressions: global_SetExpression', () => {
// TODO: i64_store16Expr,
// TODO: i64_store32Expr,
test('WasmBuilder-Expressions: memory_SizeExpression', () => {
expect(Expressions.memory_SizeExpression()).toEqual([0x3f]);
expect(Expressions.memory_SizeExpression()).toEqual([0x3f,0x00]);
});
test('WasmBuilder-Expressions: memory_GrowExpression', () => {
expect(Expressions.memory_GrowExpression(Expressions.nopExpression())).toEqual([
...Expressions.nopExpression(),
0x40,
0x00,
]);
});
test('WasmBuilder-Expressions: i32_ConstExpression', () => {
Expand Down
Loading

0 comments on commit 265b42e

Please sign in to comment.