From b14eedb541d76aa08066dbc3527ef89ce968e7c2 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Mon, 11 May 2020 11:38:09 -0500 Subject: Support Bool, print debug filename --- nimterop/getters.nim | 5 ++++- nimterop/toast.nim | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/nimterop/getters.nim b/nimterop/getters.nim index f1d1866..f834370 100644 --- a/nimterop/getters.nim +++ b/nimterop/getters.nim @@ -103,7 +103,10 @@ const # floating point "float": "cfloat", "double": "cdouble", - "long double": "clongdouble" + "long double": "clongdouble", + + # Misc Nim types + "Bool": "bool" }.toTable() # Nim type names that shouldn't need to be wrapped again diff --git a/nimterop/toast.nim b/nimterop/toast.nim index d74838a..a4fe6fa 100644 --- a/nimterop/toast.nim +++ b/nimterop/toast.nim @@ -114,6 +114,9 @@ proc main( doAssert gState.outputHandle.open(outputFile, fmWrite), &"Failed to write to {outputFile}" + if gState.debug: + echo &"# Writing output to {outputFile}\n" + # Process grammar into AST let astTable = -- cgit v1.2.3