nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parser: the parent of EOF is Start
[nit.git]
/
src
/
parser
/
parser_work.nit
diff --git
a/src/parser/parser_work.nit
b/src/parser/parser_work.nit
index
363faf4
..
86f44e7
100644
(file)
--- a/
src/parser/parser_work.nit
+++ b/
src/parser/parser_work.nit
@@
-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