lua-users home
lua-l archive

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

Alain wrote:
But there remains on problem: I want to present users with a more simple syntax for the language. Not only for simplicity but for discipline too. There must be a way to do it.

Uh? Lua syntax is amongst the easier for the scripting languages I know (I don't know that much, but even :-)

I am not even sure a Basic dialect could be said easier. (Basic has been designed for beginners, after all.)

You sai in another message: "Trust your users. That may be hard, but it's worth it in the long run." Well I don't trust them, it is sad but it is a fact of life: users are dangerous, agressive creatures.

Well, so don't put a programming language in their hands, or generate code yourself, eg. with a graphical interface allowing to connect boxes to form an organigram (or an UML graph...).

Perhaps a bit like that:

Or make a simplistic metalanguage, and parse it to generate Lua code (or VM bytecode if you are good enough).

Philippe Lhoste
--  (near) Paris -- France
--  --  --  --  --  --  --  --  --  --  --  --  --  --