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. If you have addons installed in a recent version of trace, the expression load'trace' is sufficient.

trace'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.

See also: 'general/misc/trace'