Comment #1 on issue 3525 by [email protected]: 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
But that would ONLY associate A CLASS with its own parser/compiler.
But wouldnt it make more sense on the method level.
Default is Smalltalk and for any other syntax you can use
a pragma:
foo
<language: 'JavaScript'>
alert('hi');
bar
<language: 'C'>
_export(...)
You could return a script for Seaside or store an XML in a method,
write VMMaker in C in the ST browser, ...
I think VW has something similar since I've seen this once in a VW browser.
Smalltalk/X too since you can write C directly in the ST browser.
Depending on the pragma you could do syntax highligting, provide tools, ...