lua-users home
lua-l archive

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


I am writing a program partially in Lua, partially in C, using a
literate programming tool to generate several code files and
documentation.  The tool is willing to put line pragmas into the Lua
code  formatted in any way I please, special comment lines,
statements, anything.  How can I make Lua use it to tell me line
numbers in the original file when there is an error?

I can think of several ways, e.g. making a custom version of the Lua
interpreter.  But this wheel has surely been invented.

-- Dirk