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 ; | |
import haxe.macro.Type; | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
using haxe.macro.Tools; | |
class MacroHijacked { | |
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 ; | |
import byte.ByteData; | |
class Main { | |
public static function main() { | |
var l = new RandomLexer( ByteData.ofString( '<tag><hello></hello><world></world></tag>' ), 'random-pause' ); | |
var t = []; | |
try while (true) t.push( l.token( RandomLexer.root ) ) catch (e:Dynamic) trace( e ); |
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 ; | |
import haxe.ds.StringMap; | |
import haxe.macro.Compiler; | |
import haxe.macro.Printer; | |
import haxe.macro.Type; | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
using StringTools; |
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 ; | |
/** | |
* ... | |
* @author Skial Bainn | |
*/ | |
class Main { | |
public static function main() new Main(); |
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; | |
#if macro | |
import haxe.macro.Compiler; | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
#end | |
class 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
package; | |
#if macro | |
import haxe.macro.Compiler; | |
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
#end | |
class 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
package; | |
import haxe.ds.StringMap; | |
import haxe.macro.Type; | |
import haxe.macro.Expr; | |
import haxe.macro.Context; | |
import haxe.macro.Compiler; | |
using StringTools; |
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; | |
class Main { | |
static function main() { | |
for (projectile in ['apples', 'oranges']) trace( 'I threw $projectile!' ); | |
} | |
} |
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; | |
import python.lib.os.Path; | |
class Main { | |
static function main() { | |
trace( Path.join('C:\\', 'myPath') ); | |
trace( Path.join('C:\\', 'my', 'longer', 'python', 'powered', 'path' ) ); | |
} |
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; | |
import js.html.Blob; | |
class Main { | |
static function main() { | |
var blob1 = new Blob(['<a href="http://haxememes.tumblr.com/post/52244226107/type-inference">Haxe Memes</a>']); | |
var blob2 = new Blob([blob1, '<a href="http://haxememes.tumblr.com/post/98160270445/simon-working-on-haxe">Haxe Memes</a>']); | |
} |
OlderNewer