elementName method
Implementation
String elementName(Vocabulary vocabulary, int a) {
if (a == Token.EOF) {
return '<EOF>';
} else if (a == Token.EPSILON) {
return '<EPSILON>';
} else {
return vocabulary.getDisplayName(a);
}
}
String elementName(Vocabulary vocabulary, int a) {
if (a == Token.EOF) {
return '<EOF>';
} else if (a == Token.EPSILON) {
return '<EPSILON>';
} else {
return vocabulary.getDisplayName(a);
}
}