Jump to content

Extend your language: Difference between revisions

m
Tweak irregular header markup
m (→‎{{header|Phix}}: added syntax colouring, marked p2js compatible)
m (Tweak irregular header markup)
Line 67:
.endm</lang>
 
=={{header|Ada}} ==
 
<lang Ada>with Ada.Text_IO; use Ada.Text_IO;
Line 188:
<pre>only second</pre>
 
=={{header|C}} ==
This task requires syntax different from the <code>if</code> keyword in C. For example:
 
Line 285:
 
=={{header|C sharp|C#}}==
<lang c sharpcsharp>
 
using System;
Line 2,568:
false and false</pre>
 
=={{header|R}} ==
It is not possible to extend the language by adding keywords or creating macros. This kind of behaviour can be faked be creating functions that take expressions and evaluating them. (The switch and ifelse functions are existing examples.)
 
10,333

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.