Talk:Extend your language: Difference between revisions

There are already examples of language extension on RC; point to example
No edit summary
(There are already examples of language extension on RC; point to example)
Line 9:
 
::::: The task does not actually require new syntax -- for example, the TCL implementation uses the same syntax rules that all TCL implementations follow. (And, "macro" is itself a language-specific concept.) --[[User:Rdm|Rdm]] 18:59, 27 August 2010 (UTC)
 
:::::: For a ''real'' example of syntax extension in Tcl, check out [[Window_creation/X11#Tcl]] which embeds [[C]] directly inside Tcl. Putting one (syntactically totally different) language inside another has got to be real extension, right? :-) However, the code to do it (as opposed to making use of it) is also rather longer than I normally put in an RC solution; that example uses an external library (and an external C compiler too, as it happens, plus weaving of the code back into Tcl). –[[User:Dkf|Donal Fellows]] 07:41, 28 August 2010 (UTC)
 
::::: I wasn't sure, but I guess the concept of "macro" may vary between languages and should ''not'' be banned? --[[User:Paddy3118|Paddy3118]] 19:03, 27 August 2010 (UTC)
Anonymous user