<div dir="ltr">Rewriting the Squeak syntax with OMeta. Its not that I don't like the squeak syntax, but, think of a language with multiple syntaxes! If you wrote a syntax for a different language in smalltalk, you could port applications to and from smalltalk more easily, in theory.<br>
This is what I have.<br><br>The new Syntax class:<br>NewSyntax>>messageSyntax ::= <tsString>:o<space>$(<tsString>:m$) => [Transcript show: 'Message: ', m, ' was sent to: ', o]<br>
<br><br>Executed in a Workspace:<br>stringToMatch := '''OMeta'' (''subclass: #E'')'.<br>(E on: stringToMatch readStream) apply: #messageSynatax.<br>Transcript cr.<br><br>This doesn't do anything, but it could. the syntaxt this creates is like this:<br>
'Object' ('message')<br>The quotes are required, and I dont think you can send more than one message at once, but this could be an example:<br>'Object' ('subclass: #HelloOMeta')<br><br>just a thought.<br>
dz<br clear="all"><br>-- <br>David Zmick<br>/dz0004455\<br><a href="http://dz0004455.googlepages.com">http://dz0004455.googlepages.com</a><br><a href="http://dz0004455.blogspot.com">http://dz0004455.blogspot.com</a><br>
</div>