lua-users home
lua-l archive

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

On Wednesday 09, Anurag Sharma wrote:
> The console shows up as follows
> Lua 5.1.4  Copyright (C) 1994-2008, PUC-Rio
> Then I run the Lua script file as follow
> > C:\a\ScriptingLanguageSupport\Lua2.lua
> It gives me this error message
> stdin:1: '<name>' expected near '\'

That is the Lua interpreter and it expects Lua code not files to execute.

Type this Lua code to execute that Lua script:

Note the double backslashes.  One backslash is used to escape some control 
characters like newline "\n", tab "\t".

Robert G. Jakabosky