parser: use C tables in lexer
authorJean Privat <jean@pryen.org>
Mon, 24 Jan 2011 21:31:55 +0000 (16:31 -0500)
committerJean Privat <jean@pryen.org>
Mon, 24 Jan 2011 21:31:55 +0000 (16:31 -0500)
commitd8543bbdc4609bbb3b23feb1987da10a38a2ddef
tree70103ddf92c8ead288a56f9aec3a5d80f04e506f
parent474715c5e0a02073263c0518eb7e912f71ac6ebd
parser: use C tables in lexer

The new module parser/tables contains the tables used during the lexical
analysis.
Therefore, we do not need to have big tables in the Nit code for the lexer.

During the conversion, the handling of states (aka lexical contexts)
is removed since it is not used.

Signed-off-by: Jean Privat <jean@pryen.org>
src/parser/lexer.nit
src/parser/tables.nit [new file with mode: 0644]
src/parser/tables_nit.c [new file with mode: 0644]
src/parser/tables_nit.h [new file with mode: 0644]
src/parser/xss/lexer.xss
src/parser/xss/main.xss