<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FWnt%2FExpression</id>
	<title>Module:Sandbox/Wnt/Expression - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3ASandbox%2FWnt%2FExpression"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Wnt/Expression&amp;action=history"/>
	<updated>2026-06-21T09:12:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Sandbox/Wnt/Expression&amp;diff=146405&amp;oldid=prev</id>
		<title>imported&gt;Wnt: Wnt moved page Module:Expression to Module:Sandbox/Wnt/Expression without leaving a redirect: Half-finished module challenged at AfD</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Sandbox/Wnt/Expression&amp;diff=146405&amp;oldid=prev"/>
		<updated>2018-06-29T11:25:57Z</updated>

		<summary type="html">&lt;p&gt;Wnt moved page &lt;a href=&quot;/index.php?title=Module:Expression&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Module:Expression (page does not exist)&quot;&gt;Module:Expression&lt;/a&gt; to &lt;a href=&quot;/research/Module:Sandbox/Wnt/Expression&quot; title=&quot;Module:Sandbox/Wnt/Expression&quot;&gt;Module:Sandbox/Wnt/Expression&lt;/a&gt; without leaving a redirect: Half-finished module challenged at AfD&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt; --- this began long ago when a first test program for the Mandelbrot set went pear-shaped&lt;br /&gt;
 &lt;br /&gt;
local p={}&lt;br /&gt;
&lt;br /&gt;
function chunk(text)&lt;br /&gt;
    local text=mw.ustring.gsub(text,&amp;quot;(%d%s*)E(%s*[%d%+%-])&amp;quot;,&amp;quot;%1 E %2&amp;quot;) -- force space around E notation to avoid going nuts later&lt;br /&gt;
    local debuglog=&amp;quot;&amp;quot;&lt;br /&gt;
    local chunks={type={}}&lt;br /&gt;
    local prowl=mw.ustring.gmatch(text,&amp;quot;(%S+)&amp;quot;)&lt;br /&gt;
    local firstbit&lt;br /&gt;
    local num=1&lt;br /&gt;
    local op=2&lt;br /&gt;
    local var=3&lt;br /&gt;
    local warning=4&lt;br /&gt;
    local defs={num={&amp;quot;^([%d%.]*)(.*)$&amp;quot;},op={&amp;quot;^(E?)(.*)$&amp;quot;,&amp;quot;^([%(%)%*%+%-%?%%/!^]?)(.*)$&amp;quot;},var={&amp;quot;^(%a*)(.*)$&amp;quot;}}&lt;br /&gt;
    t=prowl()&lt;br /&gt;
    while t do&lt;br /&gt;
        local ot=t&lt;br /&gt;
        for i,j in pairs(defs) do&lt;br /&gt;
            for _,v in pairs(j) do&lt;br /&gt;
                firstbit,t=mw.ustring.match(t,v)&lt;br /&gt;
                debuglog=debuglog..&amp;quot;&amp;lt;&amp;quot;..tostring(firstbit)..&amp;quot;,&amp;quot;..tostring(t)..&amp;quot;&amp;gt;&amp;quot;..tostring(i)..&amp;quot;i&amp;quot;..tostring(j)..&amp;quot;j&amp;quot;..tostring(t)..&amp;quot;t&amp;quot;..tostring(v)..&amp;quot;v&amp;quot;&lt;br /&gt;
                assert(t,debuglog) -- should always deliver a null string even if the target isn&amp;#039;t there&lt;br /&gt;
                if firstbit ~= &amp;quot;&amp;quot; then&lt;br /&gt;
                    table.insert(chunks,firstbit)&lt;br /&gt;
                    table.insert(chunks.type,i)&lt;br /&gt;
                end&lt;br /&gt;
            end&lt;br /&gt;
        end&lt;br /&gt;
        if t==ot then&lt;br /&gt;
            firstbit,t=mw.ustring.match(t,&amp;quot;^(.)(.*)$&amp;quot;)&lt;br /&gt;
            table.insert(chunks,&amp;#039;ignored:&amp;#039;..firstbit)&lt;br /&gt;
            table.insert(chunks.type,warning)&lt;br /&gt;
        end&lt;br /&gt;
        if t==&amp;quot;&amp;quot; then t=prowl() end -- if you run out of bits between spaces, pull a new interspace bit.&lt;br /&gt;
    end&lt;br /&gt;
    return chunks&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
    local args=frame.args or {}&lt;br /&gt;
    local parent=frame.getParent(frame) or {}&lt;br /&gt;
    local pargs=parent.args or {}&lt;br /&gt;
    local expr=args.expr or pargs.expr or &amp;quot;&amp;quot; -- (Handle nothing in with nothing out?)&lt;br /&gt;
    local chunks=chunk(expr)&lt;br /&gt;
    return #chunks,&amp;quot;types&amp;quot;..table.concat(chunks.type,&amp;quot;,&amp;quot;)..&amp;quot;values&amp;quot;..table.concat(chunks,&amp;quot;,&amp;quot;)&lt;br /&gt;
    -- check 1: getting the input sorted out into chunks&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Wnt</name></author>
	</entry>
</feed>