- DoParse() now writes out the parsed AST for the input file to <file>.ast.
Maybe TODO: Find a simple LISP pretty printer that isn't written in LISP so that the output isn't all on one big long line. - zcc-parse.lemon now returns the complete AST through the parse state. - Fixed crash in PrintEnumNode(). SVN r3773 (scripting)
This commit is contained in:
parent
a5c938445a
commit
2d139f3846
4 changed files with 23 additions and 11 deletions
|
|
@ -141,7 +141,7 @@ static void PrintEnum(FString &out, ZCC_TreeNode *node)
|
|||
static void PrintEnumNode(FString &out, ZCC_TreeNode *node)
|
||||
{
|
||||
ZCC_EnumNode *enode = (ZCC_EnumNode *)node;
|
||||
out.AppendFormat("(enum-node '%s' ", FName(enode->ElemName));
|
||||
out.AppendFormat("(enum-node '%s' ", FName(enode->ElemName).GetChars());
|
||||
PrintNodes(out, enode->ElemValue, ')');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue