Icon+Unicon/Intro: Difference between revisions

Content added Content deleted
(The Unicon Pre-processor)
Line 802: Line 802:
Unicon extended the behavior of a number of procedures.
Unicon extended the behavior of a number of procedures.
<lang Unicon> reverse(x) # Icon x is string, Unicon x is string,list</lang>
<lang Unicon> reverse(x) # Icon x is string, Unicon x is string,list</lang>
== The Unicon Pre-processor ==
Unicon implements some of its functionality in the translator (icont) and the rest in the pre-processor (unicon). The pre-processor is typically used for syntactic enhancements like objects and parameter type checking.

If you are interested in seeing the code generated by the pre-processor, try the following command:
<pre>unicon -E source.icn</pre>