parser Parameter

Defines the live parser to be used.

Scope: File

Syntax

query parser 
set parser Command [Parameters] 

Options

Command 
A native Editor command to be invoked by trigger.
Parameters 
The parameters required by the command.

Description

The parser parameter sets the command to be invoked by the trigger command to process changed lines. If a parser has been specified using set parser, the trigger command is invoked automatically to process the lines on the pending list. As each is processed, the parser command specified by set parser is invoked with the pending line temporarily set to the current line.

A call to set parser processes any pending changed lines before the new parser is selected or switched off.

The parser command must be a native command invoked with the argument string specified on the set parser command. If the parser itself is a macro or external command the native command must be lxr. Use the set parser without a command name or arguments to turn off automatic parsing of changed lines.

Use the set autoparse off command to suspend automatic parsing without canceling any parser.

Example

To specify a prrexx parser, type:

set parser prrexx 

API Return Codes

None.


lxr Command
trigger Command
autoparse Parameter