1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/tests/positive/MiniC/ClosureNoEnv
Paul Cadman 3396c52fa2
Support function closures with no environment in minic (#137)
* Updates runtime with function calls

* wip function calls

* Remove juvix_function_call macro

* Remove "new_" prefix for constructors and add _field suffix

* Rename test file

* Add example of using constructor as closure

* Test mjuvix function as function closure

* Keep track of emitted closures to avoid duplication

* Use concatMapM from MiniJuvix.Prelude

* Refactoring to split out the closure gen

* Separate passes for function sigs and closures

* Renaming functions generating functionDefs

* Rename juvix_function to minijuvix_function

* Rename DeclJuvixClosure

* Remove typeDefType'

* Remove unnecessary do

* Use Mono.getName

* Extract isNullary

* Use let-in instead of where
2022-06-13 14:04:38 +02:00
..
expected.golden Support function closures with no environment in minic (#137) 2022-06-13 14:04:38 +02:00
Input.mjuvix Support function closures with no environment in minic (#137) 2022-06-13 14:04:38 +02:00
IO.mjuvix Support function closures with no environment in minic (#137) 2022-06-13 14:04:38 +02:00
minijuvix.yaml Support function closures with no environment in minic (#137) 2022-06-13 14:04:38 +02:00
String.mjuvix Support function closures with no environment in minic (#137) 2022-06-13 14:04:38 +02:00