lua-users home
lua-l archive

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


This Lua grammar for ANTLR looks like it is most of the way there:, but it ignores operator
precedence. The parser in the Lua implementation
( is mostly a
straightforward recursive descent parser, with expressions being the
tricky part (it uses precedence climbing, see and, or just read the
code :-) ).

Fabio Mascarenhas

On Fri, Oct 14, 2011 at 6:26 AM, Rafael Bittencourt
<> wrote:
> Hi,
> I am developing compiler for Lua Language and I implemented the algorithm of
>  Non recursive syntax analysis. But it need the language is in LL(1) form.
> So, i have tried reduce the Lua
> grammar( for this form. But i
> didnt have sucess. I wanna know if is possible convert this grammar to
> LL(1), i saw the code of compiler in c and i read in any comment that use
> the LL(1) form.
> Greetings
> --
> Rafael de Oliveira Bittencourt
> ---------------------------------------------------------------------
> Bacharelando em Ciência da Computação -UFBA
> Estagiário Suporte-CPD/UFBa  (71) - 3283-6119
> GNU/Linux Registered User  #499863