Re: How to use our own token ?

2010-01-29 Thread Hans Aberg
On 29 Jan 2010, at 03:11, Aurelien Tran wrote: Use 'bison --defines' - see manual or 'bison --help', which then writes a header .tab.h, which contains stuff like: enum yytokentype { token_error = 258, help_key = 259, quit_key = 260, ... } Include this header in the lexer

Re: How to use our own token ?

2010-01-29 Thread Hans Aberg
On 29 Jan 2010, at 12:30, Aurélien Tran wrote: As you see from the numbers above, Bison just numbers the tokens sequentially, and it is used shifted in parser lookup tables as indices, for speed simply. So Bison does not support that, I feel sure, and it would not be easy to fit with the im