condense9 / hark-lang

A serverless virtual machine
https://guide.condense9.com
Apache License 2.0
108 stars 8 forks source link

Compile debug info into executable #6

Closed rmhsilva closed 4 years ago

rmhsilva commented 4 years ago

So that when something goes wrong, a traceback can display the source.

Simple naive approach: attach debug info (filename, line number, line text) to each machine instruction emitted.

rmhsilva commented 4 years ago

Done!