Redid the lineinfo handling.
commit3a0a891cd2728f318135706ecffa4ee86c963bb5
authorfabien <fabien@fabien-ubuntu.(none)>
Wed, 10 Sep 2008 16:49:31 +0000 (10 18:49 +0200)
committerfabien <fabien@fabien-ubuntu.(none)>
Wed, 10 Sep 2008 16:49:31 +0000 (10 18:49 +0200)
tree90afd8549ecff159b25831c7aac2e9f6f42f7a5c
parentd9d3227df6be5ef824a5012ed38b59e7af12b245
Redid the lineinfo handling.

Now every piece of AST has got a lineinfo field, with two sub-fields first and last, holding a position in source
represented as 3 numbers:
- line number
- column number (i.e. number of chars wince last '\n')
- character number, since beginning of file.

lineinfo fields are automatically added by gg in gg generated parsers, after the application of transformer functions.
They're also added in every token generated by lexer.
src/compiler/compile.lua
src/compiler/gg.lua
src/compiler/lexer.lua
src/compiler/mlc.mlua
src/compiler/mlp_expr.lua
src/compiler/mlp_misc.lua
src/compiler/mlp_stat.lua