Hi all,
I would like to see something like a mw.expr
Scribunto library function rather than the following call, even worse when no frame object present in local function:
mw.getCurrentFrame():callParserFunction( "#expr", { "1+1" } )
There is already Extension:ParserFunctions/Extended #Expr.php (extended) which could be used without any prerequisites. Any project which installed ParserFunctions might use it, but even some more. I am not an expert in questions of extension integration, but it seems to me not a big deal to import Expr.php
into Scribunto environment.
Currently there is one single function appearing in this “library”. That might be a mw.util.expr()
function, leaving space in mw.util
for further helpful functions.
Greetings