public class PythonShallowParser extends ShallowParserBase<PythonShallowParser.EPythonParserStates>
Modifier and Type | Class and Description |
---|---|
static class |
PythonShallowParser.EPythonParserStates
The states used in this parser.
|
Constructor and Description |
---|
PythonShallowParser()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isFilteredToken(IToken token,
IToken previousToken)
Template method that can be used to ignore/filter certain tokens.
|
createRecognizer, endWithPossibleContinuation, filterTokens, inAnyState, inState, parse, parseFragment, parseTopLevel
public PythonShallowParser()
protected boolean isFilteredToken(IToken token, IToken previousToken)
isFilteredToken
in class ShallowParserBase<PythonShallowParser.EPythonParserStates>
previousToken
- the last non-filtered token (can be used for context sensitive
filtering). This may be null is no previous token exists.