Sign in to follow this  

simple lua syntax checking

This topic is 3303 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

ok so im sure this has been mentioned but i cannot find it! (so apologies) lua debugging is driving me NUTS. Specifically.... syntax errors.. wow...you totally dont realise how much you rely on the compiler normally.. ill never berate it again! Is there any tool, that literally just allows me to load up a lua script, and will simply highlight syntax errors? Something so simple would be SO useful its untrue!

Share this post


Link to post
Share on other sites
Lua comes with a commandline compiler, which will spit out syntax errors in the script, if there are any. Its possible to hook up the compiler into Visual Studio, so it compiles all the Lua scripts ( if you've included them into the project ) with that compiler, and output any errors it encounters. That way you can catch comiple time syntax errors, conviently within Visual Stuido.

You'll have to google for it, I'm not sure exactly how it's done, only used such a system in the past.

Good Luck!

-ddn

Share this post


Link to post
Share on other sites
yeah sorry guys! i downloaded several debuggers i found on google but other than keyword highlighting they didnt actually do much to help spot errors in syntax!

Cheers ddn3 totally didnt realise lua came with a commandline compiler... Ill give it a go now! Thanks

Share this post


Link to post
Share on other sites

This topic is 3303 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this