cdlrts(3)

NAME
cdlrts - CDL3 runtime system.

DESCRIPTION
The CDL3 compiler comes with its own runtime system and set of primitive algorithms. These predefined affixes and routines are listed and grouped below.
Due to the fact that CDL3 allows spaces in names it is not possible to compile manual pages for each individual routine. The manual pages are therefore grouped in several individual pages per subject.

  predefined affixes:
  FORMAT,
  FILE,
  TEXT,
  INT

  calls to initiate or terminate I/O.
See manual page cdl-io(3).
  TEST open input file (>TEXT,FILE>),
  TEST open output file (>TEXT,FILE>),
  PRED open standard output (FILE>),
  PRED open standard error (FILE>),
  PRED open standard input (FILE>),
  TEST pipe to command (>TEXT,FILE>),
  TEST pipe from command (>TEXT,FILE>),
  ACTION close pipe (>FILE),
  ACTION close (>FILE)

  calls for output.
See manual page cdl-output(3).
  PRED seek (>FILE,>INT),
  ACTION write (>TEXT),
  ACTION write (>INT),
  ACTION write (>FILE,>TEXT),
  ACTION write (>FILE,>INT),
  ACTION formatted write (>FILE,>FORMAT),
  ACTION write char (>FILE,>INT),
  ACTION write char (>INT)

  calls for debugging.
See manual page cdl-debug(3).
  FUNCTION trace (>TEXT),
  FUNCTION trace (>INT),
  FUNCTION formatted trace (>FILE,>FORMAT)

  calls for input.
See manual page cdl-input(3).
  PRED read line (TEXT>),
  PRED read line (>FILE,TEXT>),
  PRED read char (>FILE,TEXT>),
  PRED read char (>FILE,INT>),
  PRED read char (TEXT>),
  PRED read char (INT>)

  calls for integer handling.
See manual page cdl-integer(3).
  TEST less (>INT,>INT1),
  TEST lesseq (>INT,>INT1),
  TEST greater (>INT,>INT1),
  TEST greatereq (>INT,>INT1)

  calls for string handling.
See manual page cdl-string(3).
  FUNCTION length (>TEXT,INT>),
  FUNCTION extract (>TEXT,>INT1,>INT2,TEXT1>),
  TEST is subtext (>TEXT,>INT>,>TEXT1),
  TEST between (>TEXT,>INT,>TEXT1,>TEXT2),
  TEST not between (>TEXT,>INT,>TEXT1,>TEXT2),
  TEST before (>TEXT,>TEXT1),
  TEST is prefix (>TEXT,>TEXT1,TEXT2>),
  TEST prefix (>TEXT,>INT,TEXT1>,TEXT2>)

  calls for converting.
See manual page cdl-converting(3).
  TEST asciicode (>TEXT,>INT1,INT2>),
  FUNCTION bindec (>INT,TEXT>),
  TEST decbin (>TEXT,INT>),
  FUNCTION hash (>TEXT,>INT1,INT2>)

  system calls.
See manual page cdl-system(3).
  TEST command arg (>INT,TEXT>),
  FUNCTION exit (>INT),
  TEST get from environment (>TEXT1,TEXT2>),
  FUNCTION time (INT>),
  TEST file date (>TEXT,INT>),
  PRED execute (>TEXT),
  FUNCTION get key (TEXT>).

FILES
All run time system calls are defined in predef.k3 which was configured to be installed in /usr/pkg/share/cdl3/include in your installation.

SEE ALSO
cdlc(1), cdl-io(3), cdl-output(3), cdl-debug(3), cdl-input(3), cdl-integer(3), cdl-string(3), cdl-converting(3), cdl-system(3)

COPYING
Copyright (C) 2000 C.H.A. Koster
CDL3 is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
CDL3 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public License along with this version of CDL; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA