If you have any custom made token filter class, you will need it to implement
the antlr.ASdebug.IASDebugStream
interface in order for the Flux
Debugger to work.
In the implementation of the methods, just call the corresponding static method
from antlr.ASdebug.ASDebugStream
class, passing your TokenStream (ie, lexer)
as the argument.
For example, this is how the antlr.TokenStreamBasicFilter
implements IASDebugStream
-
Note that in the implementation, just the corresponding method in ASDebugStream
is called.