Support Bool, print debug filename

This commit is contained in:
Ganesh Viswanathan 2020-05-11 11:38:09 -05:00
commit b14eedb541
2 changed files with 7 additions and 1 deletions

View file

@ -103,7 +103,10 @@ const
# floating point # floating point
"float": "cfloat", "float": "cfloat",
"double": "cdouble", "double": "cdouble",
"long double": "clongdouble" "long double": "clongdouble",
# Misc Nim types
"Bool": "bool"
}.toTable() }.toTable()
# Nim type names that shouldn't need to be wrapped again # Nim type names that shouldn't need to be wrapped again

View file

@ -114,6 +114,9 @@ proc main(
doAssert gState.outputHandle.open(outputFile, fmWrite), doAssert gState.outputHandle.open(outputFile, fmWrite),
&"Failed to write to {outputFile}" &"Failed to write to {outputFile}"
if gState.debug:
echo &"# Writing output to {outputFile}\n"
# Process grammar into AST # Process grammar into AST
let let
astTable = astTable =