Le 14/05/2012 21:21, Roman D. Boiko a écrit :
On Monday, 14 May 2012 at 19:13:39 UTC, Roman D. Boiko wrote:
On Monday, 14 May 2012 at 19:04:20 UTC, Tove wrote:
What if there were two different lex:er modes... with different
struct:s.
1. For an IDE with on the fly lexing:
Assumption, the error
On Tuesday, 15 May 2012 at 09:33:31 UTC, deadalnix wrote:
Le 14/05/2012 21:21, Roman D. Boiko a écrit :
Just to clarify: different modes in lexer in my view are like
two
different implementations combined in a non-trivial way (unless
the difference is minor). So complexity goes from two factors
On 05/14/2012 05:00 PM, Roman D. Boiko wrote:
On Saturday, 12 May 2012 at 03:32:20 UTC, Ary Manzana wrote:
I think you are wasting much more memory and performance by storing
all the tokens in the lexer.
Imagine I want to implement a simple syntax highlighter: just
highlight keywords. How can I
On Tuesday, 15 May 2012 at 19:27:26 UTC, Timon Gehr wrote:
On 05/14/2012 05:00 PM, Roman D. Boiko wrote:
Currently I think about making token a class instead of struct.
...
Could anybody suggest other pros and cons? Which option would
you choose?
Just use a circular buffer of value-type toke