[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: line pragmas
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 12 Dec 2011 15:09:51 +0200
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