Name
parser:GetPosition -- get current parsing position
Formerly known as
parser:Pos (V1.x)

Synopsis
line, col, pos = parser:GetPosition()
Function
This method returns the current parser position. The line and column indices are returned in line and col and the byte index is returned in pos.

Inputs
none

Results
line
current line index (starting from 1)
col
current column index (starting from 1)
pos
current byte index (starting from 1)

Show TOC