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
|
# 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
|
||||||
|
|
|
||||||
|
|
@ -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 =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue