jfun.parsec

Interface PositionMap

public interface PositionMap extends Serializable

The interface to find the line number, column number of a certain position in the source.

Author: Ben Yu Dec 12, 2004

Method Summary
PosgetPos(int n)
Get the line/column number of a position identified by an offset number.

Method Detail

getPos

public Pos getPos(int n)
Get the line/column number of a position identified by an offset number.

Parameters: n the offset in the source, starting from 0.

Returns: the Pos object.