Use a more general unification in order to be able to infer the type
of "red<<if, 3>>". Put the unification stuff in a dedicated module, and add some random unit tests to it.
Showing
- src/Makefile 2 additions, 0 deletionssrc/Makefile
- src/TODO 4 additions, 3 deletionssrc/TODO
- src/compiledData.ml 3 additions, 3 deletionssrc/compiledData.ml
- src/compiledDataDump.ml 11 additions, 0 deletionssrc/compiledDataDump.ml
- src/global.ml 5 additions, 2 deletionssrc/global.ml
- src/predefSemantics.ml 29 additions, 93 deletionssrc/predefSemantics.ml
- src/test/should_work/demo/plus.lus 1 addition, 2 deletionssrc/test/should_work/demo/plus.lus
- src/test/should_work/lionel/redIf.lus 1 addition, 1 deletionsrc/test/should_work/lionel/redIf.lus
- src/test/test.res.exp 14 additions, 9 deletionssrc/test/test.res.exp
- src/unify.ml 186 additions, 0 deletionssrc/unify.ml
- src/unify.mli 25 additions, 0 deletionssrc/unify.mli
Loading
Please register or sign in to comment