lua-users home
lua-l archive

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


As an update, the video from my talk on Haxe and Lua is available : 
https://www.youtube.com/watch?v=cGf_-VK0KcM

On Tue, May 31, 2016 at 12:30 PM, Andrei Radu <einar89@gmail.com> wrote:


What kind of line mappings do you need?  Is there a standard format?

FWIW any trace() statement will generate line numbers according to the original haxe source.  I use that for debugging.



I need line mappings for running a lua debugger on Haxe code. It's similar to what CoffeScript/TypeScript, etc do to allow JS debugging, and you can find an example format here: http://coffeescript.org/documentation/docs/sourcemap.html
It shouldn't be difficult for me to hack it, as long as the AST keeps track of the line/column in the source that generated each node.