Use tink_macro for printing generated haxe
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
"main": "kiss.Main",
|
||||
"dependencies": {
|
||||
"hscript": "",
|
||||
"uuid": ""
|
||||
"uuid": "",
|
||||
"tink_macro": ""
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
-lib hscript
|
||||
-lib uuid
|
||||
-lib tink_macro
|
||||
-cp src
|
||||
-D analyzer-optimize
|
||||
@@ -12,6 +12,7 @@ import kiss.Types;
|
||||
import kiss.CompileError;
|
||||
|
||||
using kiss.Reader;
|
||||
using tink.MacroApi;
|
||||
|
||||
typedef KissState = {
|
||||
className:String,
|
||||
@@ -54,7 +55,7 @@ class Kiss {
|
||||
switch (nextExp) {
|
||||
case Some(nextExp):
|
||||
#if test
|
||||
trace(nextExp.def.toString());
|
||||
Sys.println(nextExp.def.toString());
|
||||
#end
|
||||
var field = readerExpToField(nextExp, k);
|
||||
if (field != null)
|
||||
@@ -130,7 +131,7 @@ class Kiss {
|
||||
throw CompileError.fromExp(exp, 'conversion not implemented');
|
||||
};
|
||||
#if test
|
||||
trace(expr.expr);
|
||||
Sys.println(expr.toString());
|
||||
#end
|
||||
return expr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user