damonwang / xraylarch

X-ray Analysis Applications with Larch and Python
http://cars.uchicago.edu/ifeffit/Larch
1 stars 0 forks source link

cannot push line segments into interpreter #22

Closed damonwang closed 14 years ago

damonwang commented 14 years ago
li = larch.interpreter.Interpreter()
li.push("a =")
li.push("1")

fails because the interpreter sees a = 1

damonwang commented 14 years ago

closed by ae54f98deab8987b7da8536068a4c0764353ae4f by making InputText respect newlines (and also stop stripping them out so they can actually be seen to be respected).

started refactoring out a standalone interpreter. Need to completely separate the interpreter as this thing that receives source code, from whatever is querying the user for more input, stripping away interface-specific prompt strings, &c.