On Tue, 28 Jun 2011, Christophe Jorssen wrote:
Hello all,
I posted the following question to the lua list a week ago but got no
answer. So I try here... For sure, it is a bit out of topic (well, it
is remotely connected with some work on a lua way to perform math in
pgf) but I know there must be some lpeg (context?) wizards here who
could probably help me on this matter. Thanks in advance. Best
regards.
You can also look at x-calcmath.(mkiv|lua) in ConTeXt distribution. That
code is for converting "calculator math" to TeX rather than evaluating it,
but it can give hints about parsing.
Aditya