parser: the parent of EOF is Start
authorJean Privat <jean@pryen.org>
Wed, 3 Jun 2015 00:41:13 +0000 (20:41 -0400)
committerJean Privat <jean@pryen.org>
Wed, 3 Jun 2015 15:40:35 +0000 (11:40 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/parser/parser_work.nit

index 363faf4..86f44e7 100644 (file)
@@ -141,6 +141,7 @@ class Parser
                                var node1 = pop
                                assert node1 isa AModule
                                var node = new Start(node1, node2)
+                               node2.parent = node
                                (new ComputeProdLocationVisitor).enter_visit(node)
                                return node
                        else if action_type == 3 then # ERROR