Commit 453c5d5
committed
First few examples working.
No need for @as(unboxed) anymore.
Move type defs around.
Unify type definitions for untagged.
Add handling of float.
Add partial treatment of unknown. wip
Clean up names of types.
Rename: literal
More renaming.
rename: Block
Handle unknown case.
Add Object.
Add typeof to body of switch.
Complete classification of blocks.
Check that the type def is in one of the forms allowed.
Fix well-formedness test
no other blocks when there's an unknown
rename
More renaming.
Add specific function compile_untagged_cases
Add support for array types.
Simplify well-formedness check.
Add Json example.
And add built-in knowledge that Js.Dict.t is an object.
Fix instanceof array.
flip
Fix compilation of unknown.
Add untagged variant support to genType.
Explore (un)marshaling binary data from the compiler
dune build marshal_test.bc.js
node ./_build/default/marshal_test.bc.js
Explore (un)marshaling binary data from the compiler
Expose caml_read_file_content
Build up the example to counting elements in a list
```
ocaml gen_aaa.ml
node jscomp/test/marshal_test.js
```1 parent 2e7f5e3 commit 453c5d5
File tree
7 files changed
+30355
-1
lines changed- jscomp/test
7 files changed
+30355
-1
lines changedBinary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
Large diffs are not rendered by default.
0 commit comments