[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: BNF Syntax in Lua Reference Guide 5.2 broken
- From: Stefan Sonnenberg-Carstens <stefan.sonnenberg@...>
- Date: Sat, 14 Jul 2012 19:53:23 +0200
Am 14.07.2012 17:28, schrieb Ashwin Hirschi:
I tend to think that a valid Lua program would be:
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.