[examples] c like expressions example

This commit is contained in:
Allen Webster
2021-10-09 22:07:52 -07:00
parent ac9f415180
commit 126fab22df
8 changed files with 305 additions and 20 deletions
+4 -1
View File
@@ -111,7 +111,10 @@ int main(int argc, char **argv)
}
// print the expression
fprintf(stdout, "%.*s = ", MD_S8VArg(node->string));
if (node->string.size != 0)
{
fprintf(stdout, "%.*s = ", MD_S8VArg(node->string));
}
print_expression(stdout, parse.expr);
fprintf(stdout, ";\n");
}