Support Bool, print debug filename
This commit is contained in:
parent
f693c3e30a
commit
b14eedb541
2 changed files with 7 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue