Comment #3 on issue 3525 by siguctua: Compiler>>parserClass is broken and does not querying the class for providing the parser class
http://code.google.com/p/pharo/issues/detail?id=3525


Default is Smalltalk and for any other syntax you can use

Default is 'Parser' :)

a pragma:

  foo
    <language: 'JavaScript'>

before you get there, you should use some kind of parser to parse the pragma, and i don't see why it should be prohibited from changing a default parser for source code. It should be possible to instruct the compiler to use different parser for parsing a source code of my class methods, so a method's source code could look like:

<xml>
<method name="foo">
<return>
  <message><receiver><self/></receiver>
   <selector value="foo"/>
  </message>
</return>
</method>
</xml>

:)


Reply via email to