Multi-Assign Declarations
This commit is contained in:
parent
7b9a36c8fd
commit
c8fe074041
7 changed files with 144 additions and 0 deletions
|
|
@ -816,6 +816,15 @@ static void PrintAssignStmt(FLispString &out, const ZCC_TreeNode *node)
|
|||
out.Close();
|
||||
}
|
||||
|
||||
static void PrintAssignDeclStmt(FLispString &out, const ZCC_TreeNode *node)
|
||||
{
|
||||
ZCC_AssignDeclStmt *snode = (ZCC_AssignDeclStmt *)node;
|
||||
out.Open("assign-stmt-decl");
|
||||
PrintNodes(out, snode->Dests);
|
||||
PrintNodes(out, snode->Sources);
|
||||
out.Close();
|
||||
}
|
||||
|
||||
static void PrintLocalVarStmt(FLispString &out, const ZCC_TreeNode *node)
|
||||
{
|
||||
ZCC_LocalVarStmt *snode = (ZCC_LocalVarStmt *)node;
|
||||
|
|
@ -989,6 +998,7 @@ static const NodePrinterFunc TreeNodePrinter[] =
|
|||
PrintSwitchStmt,
|
||||
PrintCaseStmt,
|
||||
PrintAssignStmt,
|
||||
PrintAssignDeclStmt,
|
||||
PrintLocalVarStmt,
|
||||
PrintFuncParamDecl,
|
||||
PrintConstantDef,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue