C#'s greatest mistakes
Alex_Dovhal
alex_dovhal at yahoo.com
Sun Nov 28 00:15:03 PST 2010
"BLS" <windevguy at hotmail.de> ?????????/?????????? ?
???????:ics611$22s8$1 at digitalmars.com...
> So in order to create a Tool which is able to create an SQL2D Translator
> (as D2 DLL/so) just by descrining Source an Target EBNF could be a great
> help.. Calling such an ready to use Translator whenever the standard D
> Lexer finds SQL{ or Pascal{ or Go { should not be that difficult.
Your idea about compiler plugins is really Amazing, it can be even created
as external tool, e.g. preprocessor, which scans D code for CommandX
{command_str} - runs corresponding plugin, and changes this CommandX{...} to
generated output string. If plugin returns error-code it changes CommandX
{..} to assert (0, plugin_error_string);
Oh, some problem can appear when different plugins define same CommandX
More information about the Digitalmars-d
mailing list