[antlr-interest] Does the C runtime support token rewrite?
Jim Idle
jimi at temporal-wave.com
Wed Apr 1 11:45:34 PDT 2009
Andy Grove wrote:
> I am using a subset of the token rewrite in Java actions called from
> the generated parser and I need to get the same functionality working
> in C. The Java code is using the following methods from the
> TokenRewriteStream class:
>
> public void insertAfter(int i, java.lang.Object o)
> public void replace(int i, java.lang.Object o)
> public void delete(org.antlr.runtime.Token token) {
>
> Is there equivalent functionality in the C runtime? I couldn't see it
> there. If not, how can I go about achieving this in C?
>
The token rewrite stream is not yet implemented in C. Ter is eventually
going to change some of the algorithms I think and so far nobody has
asked for it.
Jim
More information about the antlr-interest
mailing list