CPL() Function - Compile Program Text BBj


For this topic's original documentation, see CPL() Function - Compile Program Text.

BBj-Specific Information

In BBx, the CPL(), LST() and PGM() functions expose the internal structure of the compiled program. BBj implements these functions in a way that does not expose internal implementation details.

In BBj, CPL(string) returns the listing format of the supplied statement. CPL (stringA, stringB) is accepted, but stringB is ignored. Using LST() or CPL() with tokenized files produce known errors.

Example

>print cpl("100 if n>=0 ?sqr(n)")
0100 if n>=0 ?sqr(n)
>print cpl("100 invalid line")
!ERROR=20 (Syntax Error)

See Also

Functions - Alphabetical Listing