public class TreePatternLexer extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ARG |
static int |
BEGIN |
protected int |
c
Current char
|
static int |
COLON |
static int |
DOT |
static int |
END |
static int |
EOF |
boolean |
error |
static int |
ID |
protected int |
n
How long is the pattern in char?
|
protected int |
p
Index into input string
|
protected String |
pattern
The tree pattern to lex like "(A B C)"
|
static int |
PERCENT |
StringBuffer |
sval
Set when token type is ID or ARG (name mimics Java's StreamTokenizer)
|
Constructor and Description |
---|
TreePatternLexer(String pattern) |
public static final int EOF
public static final int BEGIN
public static final int END
public static final int ID
public static final int ARG
public static final int PERCENT
public static final int COLON
public static final int DOT
protected String pattern
protected int p
protected int c
protected int n
public StringBuffer sval
public boolean error
public TreePatternLexer(String pattern)
Copyright © 1992–2015 ANTLR. All rights reserved.