Error parsing Lua file.

wm4manwm4man Members Join Date: 2012-09-26 Member: 160805Posts: 2
[string "..."]:2: 'end' expected near '<eof>
I am attempting to execute the following script in my application:

function f(x)
return x * x


Decoda keeps reporting the following error:

[string "..."]:2: 'end' expected near '<eof>'

If I write the function on a single line, it works!

Does anyone know what is going on? I am in the process of evaluating Decoda for my company and would really like to get past this.

Thanks for your help.


  • StefanEgoStefanEgo Members Join Date: 2011-07-29 Member: 112899Posts: 8
    Issue with line endings or file format encoding maybe?
  • vijhoni62vijhoni62 usaMembers Join Date: 2019-05-03 Member: 252705Posts: 1 Freshly registered user
    So this is the error I’m currently getting and have no clue how to fix it… any help is appreciated
    Error parsing script cl_toolbox.lua in resource menu: cl_toolbox.lua:1447: 'end' expected (to close 'function' at line 29) near <eof>
Sign In or Register to comment.