lua-users home
lua-l archive

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


On Fri, Sep 03, 2010 at 09:23:34AM +0400, Bulat Ziganshin wrote:
> Hello Silas,
> 
> Friday, September 3, 2010, 5:55:17 AM, you wrote:
> 
> > 1. Is there any replacement for lex/flex & yacc/bison for Lua?  How do
> >    you design DSLs in Lua?  I thought about using Lex & Yacc + C it is a
> >    long standing wish of mine to learn parsers, BNF with Lex & Yacc...
> 
> gg library used in metaLua. it's a dynamic parser generator, like
> Parsec in Haskell and Spirit in C++

You mean that?  http://metalua.luaforge.net/src/compiler/gg.lua.html

> 
> > 2. I was thinking that it would be interesting to make the DSL
> >    Turing-complete, to make it easily programmable.  Use Lua itself as
> >    the DSL would solve this problem, but what about if I need different
> >    syntax not present in Lua, like in "button foo ..."?
> 
> metaLua itself

Hmmm...  very nice project, ahm?  Going to take a look.  Thanks.

-- 
Silas Silva