Skip to content

jguyon/cps_ppx

 
 

Repository files navigation

#cps_ppx

Hi guys, for me asynchronous computations are a matter of urgency, then I made a PPX that behind scene transform discret sequential code into AST continuation, for simple code style as an act to prove the viability and get helped to implement all the AST patterns.

If more people get on board, it can move further.

What works fully async by now:
------>    nested [@cps] function declaration
------>    function apply "named by: await or with sufix Cps/Await"
------>    single let bindings
------>    if/then/else
------>    match/cases
------>    try/cases

What will come fully async on short:
------>    for/while loops
------>    instance methods on cps apply detection
------>    ...

About

Coroutine/Continuation/Async/Await PPX

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • OCaml 94.6%
  • Shell 2.4%
  • JavaScript 2.3%
  • Makefile 0.7%