This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package t2; | |
import sys.thread.Thread; | |
import haxe.Exception; | |
interface IContinuation<T> { | |
function resumeWith(_hx_result:T, _hx_error:Exception):Void; | |
} | |
enum CoroutineResult<T> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys.thread.Thread; | |
import haxe.Exception; | |
enum CoroutineResult { | |
Suspended; | |
Success(v:Dynamic); | |
Error(exn:Dynamic); | |
} | |
function suspend(cont:(c:Dynamic->Dynamic->Void)->Void, _hx_continuation:Dynamic->Dynamic->Void):CoroutineResult { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import haxe.macro.Printer; | |
import haxe.macro.ExprTools; | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
using Lambda; | |
typedef Ctx = { block : Array<Expr>, loops : Array<Array<Expr>> } | |
function find_autoclose_evar(els:Array<Expr>) : { index : Int, vars : Array<Var> } { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package hxcppdbg.gdb; | |
import haxe.Exception; | |
import tink.cli.Result; | |
import haxe.ds.Option; | |
import haxe.ds.Either; | |
import hxparse.Parser.parse as parse; | |
enum ResultClass { | |
RDone; |