summaryrefslogtreecommitdiffstats
path: root/y.tab.c.shipped
diff options
context:
space:
mode:
Diffstat (limited to 'y.tab.c.shipped')
-rw-r--r--y.tab.c.shipped5
1 files changed, 4 insertions, 1 deletions
diff --git a/y.tab.c.shipped b/y.tab.c.shipped
index 2df3bdb9..526f2eef 100644
--- a/y.tab.c.shipped
+++ b/y.tab.c.shipped
@@ -6743,7 +6743,10 @@ void yydebug_onoff(int val)
static void set_syntax_tree(parser_t *parser, val tree)
{
- set(mkloc(parser->syntax_tree, parser->parser), tree);
+ if (tree == nao)
+ parser->syntax_tree = tree;
+ else
+ set(mkloc(parser->syntax_tree, parser->parser), tree);
}
static val sym_helper(parser_t *parser, wchar_t *lexeme, val meta_allowed)