LST() Function - BBj

For this topic's original documentation, see the LST() Function - List Program Fragment.

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, LST(string) returns the listing format of the supplied statement. LST(stringA, stringB) is accepted, but stringB is ignored. Using LST() or CPL() with tokenized files produce known errors.

Example

>print lst("100 if n>=0 ?sqr(n)")

100 if n>=0 ?sqr(n)
>print lst("100 invalid line")
100 invalid line
>

See Also

Functions - Alphabetical Listing