title: Programming Language Syntax Parser (Convert Perl scripts to Lua)
body: <p>Is there a generic lexer which can be used to convert 100-1000 of perl scripts to lua scripts with API changes included?</p>
  
  <p>E.g. i have a c++ program that utilized perl for scripting interface - it uses things like
  sub button</p>
  
  <p>button.addEventLister(...)</p>
  
  <p>end</p>
  
  <p>now i want to change my scripting interface to lua - and i have all these perl scripts - i could write a manual parser based upon regexp etc to get a good conversation rate i believe - however i would prefer a smart solution which would make it impossible to have conversation errors between the languages (different datatypes, language syntax keywords etc)</p>
  
  <p>Maybe something like this ?  <a href="http://irony.codeplex.com/wikipage?title=expression%20grammar%20sample&amp;referringTitle=Home" rel="nofollow">http://irony.codeplex.com/wikipage?title=expression%20grammar%20sample&amp;referringTitle=Home</a></p>