BEGLINE(5)

Table of Contents

Name

begline
returns the beginning line of a node
endline
returns the ending line of a node
begcol
returns the beginning column number of a node
endcol
returns the ending column number of a node
begfile
returns the beginning file of a node
endfile
returns the ending file of a node

Synopsis

int begline(any)
ANY any;
int endline(any)
ANY any;
int begcol(any)
ANY any;
int endcol(any)
ANY any;
STRING begfile(any)
ANY any;
STRING endfile(any)
ANY any;

Description

These components of the run-time library are functions that relate nodes in the parse tree to locations in the text of the specification file. They return the location, within a specification file (or files), of the text that was parsed to form the node. Tokens are usually located on a single line of a single file (see TOKEN(5) ), but larger constructs may span multiple lines and even multiple files. These functions provide the starting and ending locations of arbitrary grammatical constructs in the original specification. If the requested information is not available for the node any, then NULL is returned.

begline and endline return the starting and ending line numbers of the grammatical construct. begcol and endcol return the starting and ending column numbers of the grammatical construct. begfile and endfile return the starting and ending file names of the grammatical construct.

See ALSO

TOKEN(5)


© 1990 Lucent Technologies, Inc
© 1998 Harmony Software, Inc