The main purpose of a ParseRegion is to give detailed locations in error messages and warnings from the parsing and validation process.
A region has a start and end line number and column number. A region is a point if the start and end positions are the same.
The line and column number are one-based, because that is what end-users understand.
A region's end-points are inclusive. For example, in the code
theSELECT FROM [Sales]
SELECT
token has region [1:1, 1:6]. Regions are immutable. @version $Id: ParseRegion.java 365 2010-11-09 18:44:22Z jhyde $ @author jhyde
|
|