lua-users home
lua-l archive

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


2004-02-03T10:12:48 John Belmonte:
> Isn't it trivial (a few lines of Lua code) to convert from the OGDL 
> syntax to Lua, at least in the case of your example?

In the case of my example, definitely.

In the more general case, a formally correct OGDL parser written in
Lua shouldn't be too hard to do, it's not a baroque or complex
format.

Furthermore, using lua(1) as a command-line tool to extract bits of
Lua files, and using ODGL's gpath(1) in the same way, translators in
either direction are trivial in shell or like languages.

Lua is vastly more expressive as a data language, and is obviously
also a powerful and fast programming language.

I mentioned OGDL here because one teeny, minute job that a subset of
Lua does quite well seems to be handled a little bit more cleanly
(to my tastes!) by OGDL.

-Bennett

Attachment: pgpz8qSmb03qi.pgp
Description: PGP signature