Jump to content
  • Advertisement
Sign in to follow this  
NovaBlack

simple lua syntax checking

This topic is 3608 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
Advertisement
You might try googling for "free lua debugger" or something similar. For example, I found this free lua IDE which has a debugger.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!