[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: The Lua parser: recursive?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 6 Jan 2001 23:04:13 -0200 (EDT)
>Is the built-in Lua parser recursive descent?
Yes, except that expressions are parsed with priorities too.
>My port can parse moderately-sized programs with no trouble; the problem
>seems to be that when an error is detected like this, a lot of nested
>function calls are made, several of which have fairly large stack frames.
You might try to reduce the number of locals and things like that in llimits.h.
>I suppose that for the execution of Lua programs, 4.1's stacklessness will
>help me, but will the parser change?
I think it's likely that the parser structure will not change as a whole,,
but perhaps something can be done about the large stack frames.