I understand that you want to write a tool with an input field and an output field and a button 'Evaluate'. Is this correct? If yes you need to learn a little bit of Spec to construct your own tool. Have a look at the examples for Spec in the help system. There is also a booklet about Spec. http://books.pharo.org/spec-tutorial/ HTH Hannes On 12/9/17, cheshirecatalyst <dekathexis@gmail.com> wrote:
I've recently picked up pharo, and am writing a small interpreter for a trivial language the details of which are unimportant. However I am looking for the simplest way to avoid having to use playground and Transcript to do something like
| reader eval | reader := MyReader from: 'some stuff in my DSL'. eval := MyEvaluator from: reader. Transcript show: eval evaluate.
I'm tired of having to change 'some stuff in my DSL' to a new expression and run it in playground.
I don't really care which is easier, a Morphic with an input box at the bottom to put my expressions in with output up top, or a something like CommandShellTranscript (which i have looked at but is too complex for me to figure out how to get the desired result from).
Basically I want to be able to use my DSL outside of playground, but still in image.