parser: do not crash on tokens without location
authorJean Privat <jean@pryen.org>
Sat, 31 May 2014 00:56:54 +0000 (20:56 -0400)
committerJean Privat <jean@pryen.org>
Sat, 31 May 2014 02:56:56 +0000 (22:56 -0400)
commit2acfc2d3dbc79843496917a55e799d5bd434c3db
tree9de11a781a6f230540af890a9c76d1b3fa8993a1
parent72e84216c407cf797ce36dcdd8998175739cca2c
parser: do not crash on tokens without location

Do not insert them in the linked lis of tokens
Do not use them to compute locations on productions

Signed-off-by: Jean Privat <jean@pryen.org>
src/parser/lexer_work.nit
src/parser/parser_work.nit