[Pharo-project] Small tool to edit bloc code
From DrGeo I would like the user to edit Smalltalk code in the form of block of code. The user interface I need is maninly to let the user write and compile code. When compiled, DrGeo should get a notification to fetch the code for internal use.
What is the best candidate to do that ? Hilaire -- Education 0.2 -- http://blog.ofset.org/hilaire
On 2 November 2011 08:46, Hilaire Fernandes <hilaire.fernandes@edu.ge.ch> wrote:
From DrGeo I would like the user to edit Smalltalk code in the form of block of code. The user interface I need is maninly to let the user write and compile code. When compiled, DrGeo should get a notification to fetch the code for internal use.
What is the best candidate to do that ?
hmm.. i am a bit confused by question. In morphic you need to create an editor morph and then hook on 'accept' or 'ok' button to send the text to compiler. You can use compiler's #compileNoPattern: textOrStream in: aClass context: aContext notifying: aRequestor ifFail: failBlock to compile a code without method header (doits) and then install the result at class you choose.
Hilaire
-- Education 0.2 -- http://blog.ofset.org/hilaire
-- Best regards, Igor Stasenko.
participants (2)
-
Hilaire Fernandes -
Igor Stasenko