pecan

History

The current version of pecan is my second attempt at macro-based Haxe coroutines. The paper "Theory and Practice of Coroutines with Snapshots" (A. Prokopec and F. Liu, ECOOP 2018) provided a source of inspiration for some aspects of the current implementation.

The first version (archived on GitHub in commit c6c1a75) was based on transforming the untyped AST. This approach had many problems, required explicit type annotations in many places that Haxe would normally infer, and could not handle many parts of Haxe syntax, such as try ... catch blocks.

« Previous: Type system