System Functions

This is another unit that is used by the Expressions unit which processes system functions like Abs, UpCase, Sqr, Succ, Pred, etc.


Processing System Functions

All Turbo Pascal system functions are processed by this procedure. Each system function has a processing procedure and an optional parameter.
 

System Function New

This procedure processes system function New. It uses a common procedure for New as function and procedure.
 

System Functions for Text Files

This procedure processes system functions SeekEoln, SeekEof, Eoln for text files and Eof for all files.
 

System Functions FilePos and FileSize

This procedure processes system functions FilePos and FileSize.
 

System Function UpCase

This procedure processes system function UpCase.
 

System Function Abs

This procedure processes system function Abs. It simply converts negative numbers to positive.
 

System Function Sqr

This procedure processes system function Sqr. It generates code to multiply the expression with itself.
 

System Functions Succ and Pred

This procedure processes system functions Succ and Pred.
 

System Function Odd

This procedure processes system function Odd.
 

System Functions Ord and Chr

This procedure processes system function Ord. It simply converts expression type to LongInt.
 
<< Start < Prev 1 2 3 Next > End >>

 
 
© 2017 Turbo Pascal | Privacy Policy