Index
All Classes and Interfaces|All Packages|Serialized Form
A
- absimpa - package absimpa
-
Abstract Simple Parser.
- absimpa.lexer - package absimpa.lexer
-
An example implementation of a lexer.
- Absimpa Java class library to construct recursive decent parsers. - Search tag in Overview
- Section
- addToken(C, String) - Method in class absimpa.lexer.SimpleLexer
-
adds a mapping from a regular expression to the given token code.
- An Example - Search tag in Overview
- Section
C
- ChoiceParser<N> - Class in absimpa
- ChoiceParser(NodeFactory<N>, Parser<N>, Parser<N>) - Constructor for class absimpa.ChoiceParser
- ChoiceParser(NodeFactory<N>, List<Parser<N>>) - Constructor for class absimpa.ChoiceParser
- ChoiceParser(Parser<N>, Parser<N>) - Constructor for class absimpa.ChoiceParser
- ChoiceParser(List<Parser<N>>) - Constructor for class absimpa.ChoiceParser
- create(SimpleLexer<N, C>) - Method in interface absimpa.lexer.LeafFactory
- create(List<N>) - Method in interface absimpa.NodeFactory
-
creates a new
Nfrom the child objects. - current() - Method in interface absimpa.Lexer
-
provides the current token code.
- current() - Method in class absimpa.lexer.SimpleLexer
- currentText() - Method in class absimpa.lexer.SimpleLexer
- currentToken() - Method in class absimpa.lexer.SimpleLexer
-
returns the current token.
G
- getCode() - Method in class absimpa.lexer.Token
- getColumn() - Method in exception class absimpa.ParseException
- getExpectedTokenCodes() - Method in exception class absimpa.ParseException
- getFoundTokenCode() - Method in exception class absimpa.ParseException
- getLeafNode() - Method in interface absimpa.Lexer
- getLeafNode() - Method in class absimpa.lexer.SimpleLexer
- getLine() - Method in exception class absimpa.ParseException
- getMessage() - Method in exception class absimpa.ParseException
-
creates a message from the fields set in this exception.
- getMoreInfo() - Method in exception class absimpa.ParseException
- getSourceName() - Method in exception class absimpa.ParseException
- getText() - Method in class absimpa.lexer.Token
- getTokenText() - Method in exception class absimpa.ParseException
I
- initAnalysis(CharSequence) - Method in class absimpa.lexer.SimpleLexer
-
resets the lexer and initializes it to analyze the given
text.
L
- LeafFactory<N,
C> - Interface in absimpa.lexer - LeftRecursiveException - Exception Class in absimpa
-
thrown by
Parser.prepareForParsing()also invoked fromParser.parse(absimpa.Lexer<N>)if the nested parsers contain a left recursion. - LeftRecursiveException(String) - Constructor for exception class absimpa.LeftRecursiveException
- Lexer - Search tag in Overview
- Section
- Lexer<N> - Interface in absimpa
-
defines the interface to a lexical analyzer (lexer) needed by the
Parser.
N
- next() - Method in interface absimpa.Lexer
-
advances to the next token, if any, and returns its code.
- next() - Method in class absimpa.lexer.SimpleLexer
-
discards the current token and advance to the next one.
- NodeFactories - Search tag in Overview
- Section
- NodeFactory<N> - Interface in absimpa
-
creates a new
Nfrom a list ofNobjects provided by a parser.
O
- opt(NodeFactory<N>, Parser<N>) - Static method in class absimpa.RepeatParser
- opt(Parser<N>) - Static method in class absimpa.RepeatParser
P
- parse(Lexer<N>) - Method in class absimpa.Parser
- parseException(BitSet) - Method in interface absimpa.Lexer
-
creates a
ParseExceptionon request from the parser. - parseException(BitSet) - Method in class absimpa.lexer.SimpleLexer
- ParseException - Exception Class in absimpa
-
The parser may throw a
ParseException, but it does not create it itself. - ParseException(Set<?>, Enum<?>) - Constructor for exception class absimpa.ParseException
- Parser<N> - Class in absimpa
-
This is an abstract class.
- Parsers - Search tag in Overview
- Section
- prepareForParsing() - Method in class absimpa.Parser
R
- RecurseParser<N> - Class in absimpa
- RecurseParser() - Constructor for class absimpa.RecurseParser
- RepeatParser<N> - Class in absimpa
- RepeatParser(NodeFactory<N>, Parser<N>, int, int) - Constructor for class absimpa.RepeatParser
S
- SeqParser<N> - Class in absimpa
- SeqParser(NodeFactory<N>, Parser<N>, Parser<N>) - Constructor for class absimpa.SeqParser
- SeqParser(NodeFactory<N>, List<Parser<N>>) - Constructor for class absimpa.SeqParser
- SeqParser(Parser<N>, Parser<N>) - Constructor for class absimpa.SeqParser
- SeqParser(List<Parser<N>>) - Constructor for class absimpa.SeqParser
- setChild(Parser<N>) - Method in class absimpa.RecurseParser
- setColumn(int) - Method in exception class absimpa.ParseException
-
set number of the input column within the input line on which the parse error occurred.
- setLine(int) - Method in exception class absimpa.ParseException
-
set number of the input line (or anything resembling a line) on which the parse error occurred.
- setMoreInfo(String) - Method in exception class absimpa.ParseException
- setName(String) - Method in class absimpa.Parser
- setSkipRe(String) - Method in class absimpa.lexer.SimpleLexer
- setSourceName(String) - Method in exception class absimpa.ParseException
-
set the name of the source from which the line with the parse error was read.
- setTokenText(String) - Method in exception class absimpa.ParseException
-
sets a string representation of the token that caused the error.
- SimpleLexer<N,
C> - Class in absimpa.lexer -
is an example implementation of a
Lexerwhich analyzes a string by trying out regular expressions for tokens until a match is found. - SimpleLexer(LeafFactory<N, C>, C) - Constructor for class absimpa.lexer.SimpleLexer
-
creates a
SimpleLexerto returneofCodewhen the end of input is encountered. - star(NodeFactory<N>, Parser<N>) - Static method in class absimpa.RepeatParser
- star(Parser<N>) - Static method in class absimpa.RepeatParser
T
- Token<C> - Class in absimpa.lexer
-
provides a typical token as a pair of the token text and its type from an enumeration
C. - Token(String, C) - Constructor for class absimpa.lexer.Token
- TokenParser<N> - Class in absimpa
- TokenParser(int, String) - Constructor for class absimpa.TokenParser
- TokenParser(C) - Constructor for class absimpa.TokenParser
- toString() - Method in class absimpa.lexer.SimpleLexer
- toString() - Method in class absimpa.lexer.Token
- toString() - Method in class absimpa.Parser
All Classes and Interfaces|All Packages|Serialized Form