09.03.2015 Views

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

Unicon Language Reference Clinton L. Jeffery Shamim Mohamed ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

$define symbol text<br />

symbolic substitution<br />

All subsequent occurrences of symbol are replaced by the text within the current file. Note that<br />

$define does not support arguments, unlike C.<br />

$include filename<br />

The named file is inserted into the compilation in place of the $include line.<br />

insert source file<br />

$ifdef symbol<br />

conditional compilation<br />

$ifndef symbol<br />

conditional compilation<br />

$else<br />

conditional alternative<br />

$endif<br />

end of conditional code<br />

The subsequent lines of code, up to an $else or $endif, are discarded unless symbol is defined<br />

by some $define directive. $ifndef reverses this logic.<br />

$error text<br />

The compiler will emit an error with the supplied text as a message.<br />

compile error<br />

$line number [filename] source code line #line number [filename] source code line<br />

The subsequent lines of code are treated by the compiler as commencing from line number in the<br />

file filename or the current file if no filename is given.<br />

$undef symbol<br />

remove symbol definition<br />

Subsequent occurrences of symbol are no longer replaced by any substitute text.<br />

EBCDIC transliterations<br />

alternative bracket characters<br />

These character combinations were introduced for legacy keyboards that were missing certain<br />

bracket characters.<br />

$ for {<br />

$) for }<br />

$< for [<br />

$> for ]<br />

These character combinations are substitutes for curly and square brackets on keyboards that<br />

do not have these characters.<br />

8.2 Predefined symbols<br />

Predefined symbols are provided for each platform and each feature that is optionally compiled<br />

in on some platforms. These symbols include:<br />

Preprocessor Symbol Feature<br />

V9 Version 9<br />

AMIGA Amiga<br />

ACORN Acorn Archimedes<br />

CMS CMS<br />

41

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!