diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2020-05-11 11:38:09 -0500 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2020-05-11 11:38:09 -0500 |
| commit | b14eedb541d76aa08066dbc3527ef89ce968e7c2 (patch) | |
| tree | e0e3dbcced96a39dfae3033d40e001d7377a4364 | |
| parent | f693c3e30af162c2a2f377d8b540fe9c34e248fb (diff) | |
| download | nimterop-b14eedb541d76aa08066dbc3527ef89ce968e7c2.tar.gz nimterop-b14eedb541d76aa08066dbc3527ef89ce968e7c2.zip | |
Support Bool, print debug filename
| -rw-r--r-- | nimterop/getters.nim | 5 | ||||
| -rw-r--r-- | nimterop/toast.nim | 3 |
2 files changed, 7 insertions, 1 deletions
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 = |
