lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Asko:
> parsing performance was never good enough to take it "seriously".
> Then someone mentioned why couldn't the syntax extensions be made in
> C, and of course they can. I don't see much added value in making
> syntax mods in Lua;

The cool thing about token filters is that you are using the Lua lexer
to do the hard stuff. Raw Lua is not good at tokenizing, its string
operations don't match the need for operations on a stream of
characters. With token filters I'm finding very respectable
performance with Lua-based syntax extensions, in fact I had to
generate some artificial tests to notice any delay at all.

steve d.