gov.nasa.pds.tools.label.antlr
Class ODLParser
java.lang.Object
antlr.Parser
antlr.LLkParser
gov.nasa.pds.tools.label.antlr.ODLParser
- All Implemented Interfaces:
- ODLTokenTypes
public class ODLParser
- extends antlr.LLkParser
- implements ODLTokenTypes
Fields inherited from class antlr.Parser |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth |
Fields inherited from interface gov.nasa.pds.tools.label.antlr.ODLTokenTypes |
BASED_INTEGER, COMMENT, DATE, DATETIME, DAY, DIGIT, DIGITS, DOY, ELEMENT_IDENT, END, END_GROUP, END_OBJECT, EOF, EOL, EQUALS, EXP_OP, EXTENDED_DIGIT, FRACTION, HOUR, IDENTIFIER, IGNORE, INTEGER, LETTER, LIST_SEPARATOR, LITERAL_GROUP, LITERAL_OBJECT, MINUTE, MONTH, MULT_OP, NULL_TREE_LOOKAHEAD, NUMBER_OR_DATETIME, POINT_OPERATOR, QUOTED, REAL, SECOND, SEQUENCE_CLOSING, SEQUENCE_OPENING, SET_CLOSING, SET_OPENING, SIGN, SPECIALCHAR, SYMBOL, TIME, UNITS, UNITS_FACTOR, WS, YEAR |
Constructor Summary |
|
ODLParser(antlr.ParserSharedInputState state)
|
|
ODLParser(antlr.TokenBuffer tokenBuf)
|
protected |
ODLParser(antlr.TokenBuffer tokenBuf,
int k)
|
|
ODLParser(antlr.TokenStream lexer)
|
protected |
ODLParser(antlr.TokenStream lexer,
int k)
|
Methods inherited from class antlr.LLkParser |
consume, LA, LT, traceIn, traceOut |
Methods inherited from class antlr.Parser |
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_tokenNames
public static final java.lang.String[] _tokenNames
_tokenSet_0
public static final antlr.collections.impl.BitSet _tokenSet_0
_tokenSet_1
public static final antlr.collections.impl.BitSet _tokenSet_1
_tokenSet_2
public static final antlr.collections.impl.BitSet _tokenSet_2
_tokenSet_3
public static final antlr.collections.impl.BitSet _tokenSet_3
_tokenSet_4
public static final antlr.collections.impl.BitSet _tokenSet_4
_tokenSet_5
public static final antlr.collections.impl.BitSet _tokenSet_5
_tokenSet_6
public static final antlr.collections.impl.BitSet _tokenSet_6
_tokenSet_7
public static final antlr.collections.impl.BitSet _tokenSet_7
_tokenSet_8
public static final antlr.collections.impl.BitSet _tokenSet_8
_tokenSet_9
public static final antlr.collections.impl.BitSet _tokenSet_9
_tokenSet_10
public static final antlr.collections.impl.BitSet _tokenSet_10
_tokenSet_11
public static final antlr.collections.impl.BitSet _tokenSet_11
_tokenSet_12
public static final antlr.collections.impl.BitSet _tokenSet_12
ODLParser
protected ODLParser(antlr.TokenBuffer tokenBuf,
int k)
ODLParser
public ODLParser(antlr.TokenBuffer tokenBuf)
ODLParser
protected ODLParser(antlr.TokenStream lexer,
int k)
ODLParser
public ODLParser(antlr.TokenStream lexer)
ODLParser
public ODLParser(antlr.ParserSharedInputState state)
setFilename
public void setFilename(java.lang.String filename)
- Overrides:
setFilename
in class antlr.Parser
getFilename
public java.lang.String getFilename()
- Overrides:
getFilename
in class antlr.Parser
setContext
public void setContext(java.lang.String context)
getContext
public java.lang.String getContext()
getStatus
public java.lang.String getStatus()
setStatus
public void setStatus(java.lang.String status)
incrementErrors
public void incrementErrors()
incrementWarnings
public void incrementWarnings()
incrementErrors
public void incrementErrors(int numErrors)
incrementWarnings
public void incrementWarnings(int numWarnings)
getNumErrors
public int getNumErrors()
getNumWarnings
public int getNumWarnings()
reportError
public void reportError(antlr.RecognitionException re)
- Overrides:
reportError
in class antlr.Parser
reportError
public void reportError(antlr.RecognitionException re,
java.lang.String s)
reportError
public void reportError(java.lang.String message,
int line)
reportWarning
public void reportWarning(java.lang.String message,
int line)
setIncludePaths
public void setIncludePaths(java.util.List includePaths)
setFollowPointers
public void setFollowPointers(boolean followPointers)
getTokenNames
public java.lang.String getTokenNames(antlr.collections.impl.BitSet set)
- Return a string containing the names of a set of tokens.
- Parameters:
set
- a set of token types
- Returns:
- a string containing the names of the tokens separated by spaces
label
public final Label label()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
statement
public final Statement statement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
simple_statement
public final Statement simple_statement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
group_statement
public final GroupStatement group_statement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
object_statement
public final ObjectStatement object_statement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
assignment_statement
public final AttributeStatement assignment_statement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
pointer_statement
public final PointerStatement pointer_statement()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
nl
public final void nl()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
value
public final Value value()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
scalar_value
public final Scalar scalar_value()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
sequence_value
public final Sequence sequence_value()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
set_value
public final Set set_value()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
numeric_value
public final Numeric numeric_value()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
date_time_value
public final DateTime date_time_value()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
text_string_value
public final TextString text_string_value()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
symbol_value
public final Symbol symbol_value()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
sequence_2d
public final Sequence sequence_2d()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
sequence_1d
public final Sequence sequence_1d()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
scalar_list
public final Sequence scalar_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
sequence_list
public final Sequence sequence_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
item_list
public final Set item_list()
throws antlr.RecognitionException,
antlr.TokenStreamException
- Throws:
antlr.RecognitionException
antlr.TokenStreamException
Copyright © 2005-2007 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.