Template:Pathway/Metabolic
From Metabolomics.JP
< Template:Pathway(Difference between revisions)
Line 6: | Line 6: | ||
---Set the first line | ---Set the first line | ||
local line = stdin:match("([^\n]+)"); | local line = stdin:match("([^\n]+)"); | ||
− | + | print(line); | |
− | + | for v in string.gmatch(line, "(%d%d?)") do | |
− | + | table.add(list,v); | |
+ | end | ||
---From the second line, leave connected positions only | ---From the second line, leave connected positions only | ||
for line in stdin:gmatch("([^\n]+)") do | for line in stdin:gmatch("([^\n]+)") do | ||
Line 44: | Line 45: | ||
for i,v in ipairs(list) | for i,v in ipairs(list) | ||
do print(v) end | do print(v) end | ||
− | |{{#repeat:Pathway/Mapping|1|{{#cdr:{{{list}}}|&&}}|&&}} | + | | 1 2 3 4 5 6 7 8 |
+ | {{#repeat:Pathway/Mapping|1|{{#cdr:{{{list}}}|&&}}|&&}} | ||
}} | }} |
Revision as of 06:37, 16 March 2009
./lua: /tmp/mw_ex_lua_Z1vujP:6: attempt to call field 'add' (a nil value) 1 2 3 4 5 6 7 8