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