Scripts/Tracer

From J Wiki
Jump to navigation Jump to search

This script demonstrates J parsing.

It is based on the system supplied trace.ijs

It works, but the user interface could be improved.

Usage:

load the script.

new_traceform_'expression'

Also, a facility is provided to execute an expression, producing a parenthesized instance of the expression instead of the usual result.

paren 'expression'

Click on the button to step through the process of parsing the expression.

Expressions are executed in the base locale.

Also of possible interest is a bugfix release of the original script on which this facility was modeled.

See also: 'general/misc/trace'