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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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.Expr; | |
import haxe.macro.Context; | |
using haxe.macro.ExprTools; | |
using haxe.macro.MacroStringTools; | |
class FunctionThread { | |
public static macro function thread(exprs:Array<Expr>) { | |
var exprs = [ for (expr in exprs) macro var _ = $expr ]; |
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.Expr; | |
#if macro | |
import haxe.macro.Context; | |
using tink.MacroApi; | |
using haxe.macro.ExprTools; | |
using haxe.macro.Context; | |
#end | |
#if !macro |
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.Expr; | |
#if macro | |
import haxe.macro.Context; | |
using tink.MacroApi; | |
using haxe.macro.ExprTools; | |
using haxe.macro.Context; | |
#end | |
#if !macro |
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.Expr; | |
import haxe.macro.Context; | |
using haxe.macro.ExprTools; | |
using haxe.macro.MacroStringTools; | |
class FunctionThread { | |
public static macro function thread(exprs:Array<Expr>) { | |
var exprs = [ for (expr in exprs) macro var _ = $expr ]; |
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
class Getter<T> { | |
var filter:String; | |
var obj:Array<T>; | |
public inline function new(obj:Array<T>,filter:String) { | |
this.filter = filter; | |
this.obj = obj; | |
} | |
public inline function get(value:Dynamic) { | |
var new_list:Array<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
@:structInit | |
class A { | |
var x:Int; | |
var y:Int; | |
} | |
@:structInit | |
class B { | |
var a:A; | |
var k:Int; |
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
class Getter<T> { | |
var name:String; | |
var obj:T; | |
public inline function new(name:String,obj:T) { | |
this.name = name; | |
this.obj = obj; | |
} | |
public inline function get() return untyped (obj:haxe.DynamicAccess<Dynamic>)[name]; |
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
'use strict'; | |
var snabbdom = require('snabbdom'); | |
var patch = snabbdom.init([require('snabbdom/modules/class'), | |
require('snabbdom/modules/props'), | |
require('snabbdom/modules/style'), | |
require('snabbdom/modules/eventlisteners')]); | |
var h = require('snabbdom/h.js'); | |
var vnode; |
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
#if macro | |
import yaml.Yaml; | |
import yaml.Parser; | |
import yaml.Renderer; | |
import yaml.util.ObjectMap; | |
import haxe.macro.Context; | |
#end | |
class Main { |
NewerOlder