lua-users home
lua-l archive

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

Am 14.07.2012 17:28, schrieb Ashwin Hirschi:

I tend to think that a valid Lua program would be:
snip 8-<
-8 snap

But it isn't:
lua -e "io.stdout:setvbuf 'no'" "test.lua"
lua: test.lua:1: unexpected symbol near ';'
Exit code: 1

Is the BNF code missleading (or wrong), or am I ?

It works just fine for me.

But... are you actually using Lua 5.2?

What does running "lua -v" say?


Thanks, that was the problem.
I was using 5.1, because my PATH was not updated.