Invalid input 'EOI'

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Invalid input 'EOI'

Hugo <Nabble>
This doesn't work, why?
value = "ok"
if type(value) == "string" then
	print(value)
else
	value()
Reply | Threaded
Open this post in threaded view
|

Re: Invalid input 'EOI'

fschmidt
Administrator
You need an "end".  See:

http://www.lua.org/manual/5.2/manual.html#9
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Invalid input 'EOI'

Hugo <Nabble>
You are right. It was my first if with else block, so I forgot the "end". But the error message is horrible. What is EOI? END OF IF? Please make this message more intuitive.
Reply | Threaded
Open this post in threaded view
|

Re: Invalid input 'EOI'

fschmidt
Administrator
I posted about this to the parboiled users forum.

http://users.parboiled.org/Parse-Error-Handling-tp4024153.html

I will wait for an answer.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Invalid input 'EOI'

fschmidt
Administrator
http://users.parboiled.org/Parse-Error-Handling-tp4024153p4024154.html

It looks like it will be a while before I can improve parse error messages.  You can assign this back to me at priority 2.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Invalid input 'EOI'

Hugo <Nabble>
Okay, we can wait while users are not allowed to tweak luan. The error messages are horrible at this point, but I can live with that for the next months.
Reply | Threaded
Open this post in threaded view
|

Re: Invalid input 'EOI'

fschmidt
Administrator
In reply to this post by Hugo <Nabble>
This is fixed.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Invalid input 'EOI'

fschmidt
Administrator
Please check this and close it.
Woe to those who call bad good and good bad -- Isaiah 5:20
Following the Old Testament, not evil modern culture
Reply | Threaded
Open this post in threaded view
|

Re: Invalid input 'EOI'

Hugo <Nabble>
It looks better now. Closing thread.