- Pair<A,B> - Class in jfun.parsec
-
This is a simple Java Bean for a pair of objects.
- Pair() - Constructor for class jfun.parsec.Pair
-
- Pair(A, B) - Constructor for class jfun.parsec.Pair
-
To create a Pair object.
- pair(Parser<A>, Parser<B>) - Static method in class jfun.parsec.Parsers
-
Sequentially run 2 parser objects and collect the results in a Pair object.
- pair(String, Parser<A>, Parser<B>) - Static method in class jfun.parsec.Parsers
-
Sequentially run 2 parser objects and collect the results in a Pair object.
- pair(A, B) - Static method in class jfun.parsec.Tuples
-
Create a Pair object.
- parse(CharSequence, String) - Method in class jfun.parsec.Parser
-
To parse a source string.
- parse(CharSequence) - Method in class jfun.parsec.Parser
-
To parse a source string.
- ParseError - Interface in jfun.parsec
-
Describes Parse error.
- Parser<Type> - Class in jfun.parsec
-
A parser runs either on character level or token level.
- ParserEval<R> - Interface in jfun.parsec
-
This is to provide laziness of a Parser.
- ParserException - Exception in jfun.parsec
-
ParserException is thrown when a grammar error happens.
- ParserException(ParseError, String, Pos) - Constructor for exception jfun.parsec.ParserException
-
Create a ParserException object.
- ParserException(String, ParseError, String, Pos) - Constructor for exception jfun.parsec.ParserException
-
Create a ParserException object.
- ParserException(Throwable, ParseError, String, Pos) - Constructor for exception jfun.parsec.ParserException
-
- ParserException(String, Throwable, ParseError, String, Pos) - Constructor for exception jfun.parsec.ParserException
-
- Parsers - Class in jfun.parsec
-
This class provides general parser combinators that work on both character
level and token level.
- Parsers() - Constructor for class jfun.parsec.Parsers
-
- parseTokens(Parser<Tok[]>, Parser<R>, String) - Static method in class jfun.parsec.Parsers
-
The created parser object will take as input the array of Tok
returned from the lexer object, feed it into the Parser object p and run
it, return the result from parser p.
- parseTokens(String, Parser<Tok[]>, Parser<R>, String) - Static method in class jfun.parsec.Parsers
-
The created parser object will take as input the array of Tok
returned from the lexer object, feed it into the Parser object p and run
it, return the result from parser p.
- parseTokens(String, ShowToken, Parser<Tok[]>, Parser<R>, String) - Static method in class jfun.parsec.Parsers
-
The created parser object will take as input the array of Tok
returned from the lexer object, feed it into the Parser object p and run
it, return the result from parser p.
- parseTokens(String, String, ShowToken, Parser<Tok[]>, Parser<R>, String) - Static method in class jfun.parsec.Parsers
-
The created parser object will take as input the array of Tok
returned from the lexer object, feed it into the Parser object p and run
it, return the result from parser p.
- ParsingFrame - Class in jfun.parsec
-
This class represents an error frame during parsing.
- ParsingFrame(String, int, Pos, Parser) - Constructor for class jfun.parsec.ParsingFrame
-
To create a ParsingFrame object.
- Pattern - Class in jfun.parsec.pattern
-
A Pattern object encapsulates an algorithm
to recognize certain string pattern.
- Pattern() - Constructor for class jfun.parsec.pattern.Pattern
-
- Patterns - Class in jfun.parsec.pattern
-
This class provides all the basic Pattern implementations and all Pattern combinators.
- Patterns() - Constructor for class jfun.parsec.pattern.Patterns
-
- peek() - Method in class jfun.parsec.Parser
-
this is a look-ahead operation.
- peek(String) - Method in class jfun.parsec.Parser
-
this is a look-ahead operation.
- peek(String, Parser<R>) - Static method in class jfun.parsec.Parsers
-
Look ahead with Parser p.
- peek() - Method in class jfun.parsec.pattern.Pattern
-
Matches with match length 0 if this Pattern object matches.
- peek(Pattern) - Static method in class jfun.parsec.pattern.Patterns
-
Matches with match length 0 if the Pattern object pp matches.
- plus(Parser<R>, Parser<? extends R>) - Static method in class jfun.parsec.Parsers
-
2 alternative parser objects.
- plus(String, Parser<R>, Parser<? extends R>) - Static method in class jfun.parsec.Parsers
-
2 alternative parser objects.
- plus(Parser<R>, Parser<? extends R>, Parser<? extends R>) - Static method in class jfun.parsec.Parsers
-
3 alternative parser objects.
- plus(String, Parser<R>, Parser<? extends R>, Parser<? extends R>) - Static method in class jfun.parsec.Parsers
-
3 alternative parser objects.
- plus(Parser<R>, Parser<? extends R>, Parser<? extends R>, Parser<? extends R>) - Static method in class jfun.parsec.Parsers
-
4 alternative parser objects.
- plus(String, Parser<R>, Parser<? extends R>, Parser<? extends R>, Parser<? extends R>) - Static method in class jfun.parsec.Parsers
-
4 alternative parser objects.
- plus(Parser<R>, Parser<? extends R>, Parser<? extends R>, Parser<? extends R>, Parser<? extends R>) - Static method in class jfun.parsec.Parsers
-
5 alternative parser objects.
- plus(String, Parser<R>, Parser<? extends R>, Parser<? extends R>, Parser<? extends R>, Parser<? extends R>) - Static method in class jfun.parsec.Parsers
-
5 alternative parser objects.
- plus(String, Parser<R>...) - Static method in class jfun.parsec.Parsers
-
combine alternative parser objects.
- plus(Parser<R>...) - Static method in class jfun.parsec.Parsers
-
combine alternative parser objects.
- Pos - Class in jfun.parsec
-
Pos represents a position in the source.
- Pos(int, int) - Constructor for class jfun.parsec.Pos
-
Create a Pos object.
- PositionedToken - Class in jfun.parsec
-
- PositionedToken(int, int, Object) - Constructor for class jfun.parsec.PositionedToken
-
Deprecated.
Create a PositionedToken object.
- PositionMap - Interface in jfun.parsec
-
The interface to find the line number,
column number of a certain position in the source.
- postfix(Parser<? extends Map<? super E, ? extends E>>, int) - Method in class jfun.parsec.OperatorTable
-
Adds a postfix unary operator.
- postfix(Parser<? extends Map<? super T, T>>, Parser<? extends T>) - Static method in class jfun.parsec.Parsers
-
Runs Parser p and then run Parser op for 0 or more times greedily.
- postfix(String, Parser<? extends Map<? super T, T>>, Parser<? extends T>) - Static method in class jfun.parsec.Parsers
-
Runs Parser p and then run Parser op for 0 or more times greedily.
- prefix(Parser<? extends Map<? super E, ? extends E>>, int) - Method in class jfun.parsec.OperatorTable
-
Adds a prefix unary operator.
- prefix(Parser<? extends Map<? super T, T>>, Parser<? extends T>) - Static method in class jfun.parsec.Parsers
-
Runs Parser op for 0 or more times greedily.
- prefix(String, Parser<? extends Map<? super T, T>>, Parser<? extends T>) - Static method in class jfun.parsec.Parsers
-
Runs Parser op for 0 or more times greedily.
- printError(String, int) - Method in class jfun.parsec.Parser
-
Create a Parser object that traces the parsing error of this parser when it fails.
- printError(String) - Method in class jfun.parsec.Parser
-
Create a Parser object that traces the parsing error of this parser when it fails.
- printParsingTrace(PrintStream) - Method in exception jfun.parsec.ParserException
-
Print the parsing trace.
- printParsingTrace(PrintWriter) - Method in exception jfun.parsec.ParserException
-
Print the resultion trace.
- printParsingTrace() - Method in exception jfun.parsec.ParserException
-
Prints the parsing trace to the standard error output.
- printResult(String) - Method in class jfun.parsec.Parser
-
Create a Parser object that traces the parsing result of this parser when it succeeds.
- printStackTrace(PrintStream) - Method in exception jfun.parsec.ParserException
-
- printStackTrace(PrintWriter) - Method in exception jfun.parsec.ParserException
-
- printTrace(String) - Method in class jfun.parsec.Parser
-
Create a Parser object that traces the parsing result of this parser when it terminates.