Merge: Add missing nodes in the AST
authorJean Privat <jean@pryen.org>
Sat, 9 May 2015 01:23:39 +0000 (21:23 -0400)
committerJean Privat <jean@pryen.org>
Sat, 9 May 2015 01:23:39 +0000 (21:23 -0400)
commit985a55c03cfb53edf6f77e8fc6cee5ac30e2e10e
treee0fa01ec993d1d8496c96b14f14157e1769f24be
parentfd0831922205913e458d5f73d3c0a435ef238522
parentfb7941c5868b0a4c15b6fd6d9c23b73c3a077fd1
Merge: Add missing nodes in the AST

Originally, the AST was very abstract and included only node that useful semantically, thus dropped most keywords and symbols during the AST transformation done by sablecc.

After all these years, I was a very bad idea that cause useless complexity for preople that wanted to program precise error messages or develop tools like nitlight or nitpretty.

So, this PR add back most of these nodes in the AST. Future PR may simplify the code of the tools to deal we a more complete AST thus remove heuristics to retrieve the missing tokens.

Pull-Request: #1320
Reviewed-by: Ait younes Mehdi Adel <overpex@gmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>