[fpc-devel] current_tokenpos/filepos

Hans-Peter Diettrich DrDiettrich1 at aol.com
Mon Sep 6 20:41:15 CEST 2010


Paul Ishenin schrieb:

> Generics need to replay tokens with their position for debugging purposes.

I.e. the tokens have to be stored and replayed with their original 
positions. Most probably the current_filepos should not be modified 
during replay (in contrast to normal token scanning)?

The replay procedure is a bit cryptic, since positions are encoded in 
special tokens, and it's not obvious in which places such tokens occur 
in the stored token stream.

DoDi



More information about the fpc-devel mailing list