nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
19e9754
)
parser: the parent of EOF is Start
author
Jean Privat
<jean@pryen.org>
Wed, 3 Jun 2015 00:41:13 +0000
(20:41 -0400)
committer
Jean 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
patch
|
blob
|
history
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