public class AdaShallowParser extends ShallowParserBase<AdaShallowParser.EAdaParserStates>
A good introduction to Ada can be found here: http://en.wikibooks.org/wiki/Ada_Programming
A reference is available here: http://www.adaic.org/resources/add_content/standards/05rm/html/RM-TOC.html
What this parser does and does not:
Implementation hints:
Modifier and Type | Class and Description |
---|---|
static class |
AdaShallowParser.EAdaParserStates
The states used in this parser.
|
Constructor and Description |
---|
AdaShallowParser()
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 AdaShallowParser()
protected boolean isFilteredToken(IToken token, IToken previousToken)
Maps "and then" and "or else" to simple "and" and "or", as the additional "then" and "else" keywords may shallow parsing much harder.
isFilteredToken
in class ShallowParserBase<AdaShallowParser.EAdaParserStates>
previousToken
- the last non-filtered token (can be used for context sensitive
filtering). This may be null is no previous token exists.