lua-users home
lua-l archive

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


>Just add a backslash at the end of a line to tell it to wait for the end 
>before processing it, like this:
>
>if X > Y then \
>   print("X is greater than Y") \
>end

The interactive interpreter in Lua 5.0 does not have or need this: it
automatically identifies when a statement is complete.

Lua 4.0 contains man pages on the interactive interpreter at doc/lua.1 and
doc/lua.html. I don't know why this wasn't on the site, but I have put it
now at http://www.lua.org/manual/lua.html . There are man pages for luac too.
--lhf