If you have Grease loaded:
Gofer new
������ squeaksource: 'CodeGenerator';
������ package: 'CodeGenerator';
������ load.
[CGSmalltalk new
������ setSourceAsCode;
������ targetClass: Object;
������ compile: 'testMethod
������ ^ 42. ^ 32' ]
on: SyntaxErrorNotification " or Notification "
do: [: ex | ^ ex errorMessage ]
Hello,i want to add some scripting capabilities to my app, and I wand to use plain smalltalk for that. The only problem is that I still haven't found a way to generate a compiled which would return a string describing a problem in case a syntax errors. Can I get some help?--
Milan Mimica