From: Saladin Mundi Date: 2007-12-14T23:03:06+09:00 Subject: String splitting problem hey guys I'm trying to split an string (which contains various method calls). The result of the splitting of the string should be an array (or something like that) which contains a sequence which an interpreter would have called the methods. Example class X def test(input) ... end end x.new.test("z.methodx(z.methody(),z.methodz(z.methodx))") If I pass "z.methodx(z.methody(),z.methodz(z.methodx))" there should be afterwards an arry like this: [0] -> var1 = z.methody() [1] -> var2 = z.methodx [2] -> var3 = z.methodz(var2) [3] -> z.methodx(var1,var3) so the call(s on different methods) given by an input string shall be extracted into the real execution sequence like an interpreter would excecute this string it. I hope you can help me with my problem. -- Posted via http://www.ruby-forum.com/.