Top Description Inners Constructors Methods
org.antlr.tool

public Class Interp

extends Object
Class Inheritance
Imports
org.antlr.Tool, org.antlr.runtime.*, org.antlr.runtime.tree.ParseTree, java.io.BufferedReader, .FileReader, java.util.Collection, .HashSet, .List, .Set, .StringTokenizer

Interpret any ANTLR grammar: java Interp file.g tokens-to-ignore start-rule input-file java Interp C.g 'WS COMMENT' program t.c where the WS and COMMENT are the names of tokens you want to have the parser ignore.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Interpback to summary
public Interp()

Method Detail

mainback to summary
public static void main(String[] args) throws Exception
org.antlr.tool back to summary

public Class Interp.FilteringTokenStream

extends CommonTokenStream
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Set<Integer>
Inherited from org.antlr.runtime.CommonTokenStream:
channel

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
setTokenTypeChannel(int ttype, int channel)

protected void
sync(int i)

Overrides org.antlr.runtime.BufferedTokenStream.sync.

Make sure index i in tokens has a token.
Inherited from org.antlr.runtime.CommonTokenStream:
consumegetNumberOfOnChannelTokensLBLTresetsetTokenSourcesetupskipOffTokenChannelsskipOffTokenChannelsReverse

Field Detail

hideback to summary
pack-priv Set<Integer> hide

Constructor Detail

FilteringTokenStreamback to summary
public FilteringTokenStream(TokenSource src)

Method Detail

setTokenTypeChannelback to summary
public void setTokenTypeChannel(int ttype, int channel)
syncback to summary
protected void sync(int i)

Overrides org.antlr.runtime.BufferedTokenStream.sync.

Doc from org.antlr.runtime.BufferedTokenStream.sync.

Make sure index i in tokens has a token.

Annotations
@Override