[fpc-devel] current_tokenpos/filepos

Hans-Peter Diettrich DrDiettrich1 at aol.com
Sun Sep 5 15:34:19 CEST 2010


Some questions about tfileposinfo position variables:

1) What's the difference between current_tokenpos and current_filepos?
Normally the scanner updates both vars to the same value...

2) What's the meaning of the tailineinfo.fileinfo value?
The default constructor inits fileinfo to current_filepos.

3) What's the meaning of the tnode.fileinfo value?
The default constructor inits fileinfo to current_filepos.

4) What's the meaning of the tsym.fileinfo value?
The default constructor inits fileinfo to current_tokenpos.

5) Some (parser) procedures modify current_tokenpos/filepos temporarily, 
and restore the old values later. What's the purpose of such changes?

DoDi



More information about the fpc-devel mailing list