<div dir="ltr">Rewriting the Squeak syntax with OMeta.&nbsp; Its not that I don&#39;t like the squeak syntax, but, think of a language with multiple syntaxes!&nbsp; 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&gt;&gt;messageSyntax ::= &lt;tsString&gt;:o&lt;space&gt;$(&lt;tsString&gt;:m$) =&gt; [Transcript show: &#39;Message: &#39;, m, &#39; was sent to: &#39;, o]<br>
<br><br>Executed in a Workspace:<br>stringToMatch := &#39;&#39;&#39;OMeta&#39;&#39; (&#39;&#39;subclass: #E&#39;&#39;)&#39;.<br>(E on: stringToMatch readStream) apply: #messageSynatax.<br>Transcript cr.<br><br>This doesn&#39;t do anything, but it could.&nbsp; the syntaxt this creates is like this:<br>
&#39;Object&#39; (&#39;message&#39;)<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>&#39;Object&#39; (&#39;subclass: #HelloOMeta&#39;)<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>