Cool idea Alexandre On 28 Sep 2010, at 03:30, Igor Stasenko wrote:
I want an API for easy plugging in an arbitrary pragma handler, which could then either completely intercept parser/compiler output or modify output.
This is userful for things like clean implementation of FFI pragmas, without patching the Parser as well as for scenarios like:
myMethod: myArg <myLanguage>
foo|<bar**baz
so, once pragma <myLanguage> parsed, and handled, an input source stream redirected to completely different parser/compier pair which, of course, should produce a compiled method as a result, but may use any syntax.
-- Best regards, Igor Stasenko AKA sig.
_______________________________________________ Pharo-project mailing list Pharo-project@lists.gforge.inria.fr http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
-- _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;: Alexandre Bergel http://www.bergel.eu ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.