lua-users home
lua-l archive

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

> > The DSL should be simple (similar to Tcl/Tk code):
> >     button foo -text "Foo" -x 10 -y 20
> >     label ...
> > 
> > So, I though about using Lex & Yacc in C to parse the DSL
> Try my lcl:

More especifically, cl.eval turns 
	button foo -text "Foo" -x 10 -y 20
(internally, not textually) and executes it.

If you only want to parse that line, you can use cl.unpack.