Show Menu
Cheatography

Prelude Directives (Draft) Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

INTROD­UCTION

This cheatsheet describes the directives inplem­ented in the Prelude Pre-Pr­oce­ssor.

Typogr­aphical things as following:

bold Keywords are to written as shown
italic Data to be entered by the user
code
A code example

If an value must be selected from a list of allowed values, the list is enclosed by square brackets. E.g. node nodename [ save | nosave ]

If an value can be selected from a list of allowed values, the list is enclosed by currly brackets. E.g. trace { on | off }

The first ( or only ) value is the default.

This product is copyright protected by : (c) Hans Vermeulen, 2017

INSTALLING PRELUDE

Download the zip file from here. Unpack the contents of this file in a directory of your choice.

Folowing directory structure will be created:

.\doc The docume­ntation here
.\mac Prelude specific macros here
.\bin Execut­ables
.\examples
Prelude is mainly written in ansi-c. Be shure libraries needed are available and accesable.

RUNNING PRELUDE

 
In the Prelude specific bin directory double­click prelud­e.exe .

In the comman­dline specify following switches as needed.

 ­ ­  [-file= filename ]
 ­ ­  Default is prelude ]
 ­ ­ ­ ­ ­ This name is used to create the filenames in the
 ­ ­ ­ ­ ­ ­fol­lowing five switches as a default.
 ­ ­  [-in= filename
 ­ ­  Default is prelude.in ]
 ­ ­  [-out= filename ]
 ­ ­  Default is prelud­e.out
 ­ ­  [-log= filename ]
 ­ ­  Default is prelud­e.log
 ­ ­  [-err= filename ]
 ­ ­  Default is prelud­e.err
 ­ ­  [-dbg= filename ]
 ­ ­  Default is prelud­e.dbg
 ­ ­  [-dbg= { yes | no } [ level ] ]
 ­ ­  Default for level iff yes specified is 5
 ­ ­  [-trc= { yes | no } [ level ] ]
 ­ ­  Default for level iff yes specified is 5
 ­ ­  [-init= string
 ­ ­  Default is "­$", Maximum 2 characters
 ­ ­  [-term= string
 ­ ­  Default is "­;", Maximum 2 characters
Prelude is mainly written in Ansi-c and runs as an applic­ation in command window. Be shure libraries needed are available and accesable.

Pragma

pragma [ test | notest ]
initiates or finishes test facility
pragma [ std | filename ]
 ­ ­  Default is prelud­e.p­ragma