A B C D E F G H I L M N O P R S T U V W 

A

accept(String) - Method in class org.petitparser.parser.Parser
Tests if the input can be successfully parsed.
accepts(Parser, String) - Static method in class org.petitparser.Parsing
Deprecated.
action(String, Function<S, T>) - Method in class org.petitparser.tools.CompositeParser
Deprecated.
Attaches an action function to an existing production name.
action(String, Function<S, T>) - Method in class org.petitparser.tools.GrammarDefinition
Attaches an action function to an existing production name.
ActionParser<T,R> - Class in org.petitparser.parser.actions
A parser that performs a transformation with a given function on the successful parse result of the delegate.
ActionParser(Parser, Function<T, R>) - Constructor for class org.petitparser.parser.actions.ActionParser
 
activationCount - Variable in class org.petitparser.utils.Profiler.Profile
The number of times the parser got activated on the top-level.
add(Function<Parser, Parser>) - Method in class org.petitparser.utils.Optimizer
Adds a generic transformer.
and() - Method in class org.petitparser.parser.Parser
Returns a parser (logical and-predicate) that succeeds whenever the receiver does, but never consumes input.
AndParser - Class in org.petitparser.parser.combinators
The and-predicate, a parser that succeeds whenever its delegate does, but does not consume the input stream [Parr 1994, 1995].
AndParser(Parser) - Constructor for class org.petitparser.parser.combinators.AndParser
 
any() - Static method in class org.petitparser.Chars
Deprecated.
any() - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts any character.
any() - Static method in interface org.petitparser.parser.primitive.CharacterPredicate
Returns a character predicate that matches any character.
any(String) - Static method in class org.petitparser.Chars
Deprecated.
any(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
anyOf(String) - Static method in class org.petitparser.Chars
Deprecated.
anyOf(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts any of the provided characters.
anyOf(String) - Static method in interface org.petitparser.parser.primitive.CharacterPredicate
Returns a character predicate that matches any of the characters in string.
anyOf(String, String) - Static method in class org.petitparser.Chars
Deprecated.
anyOf(String, String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
apply(Function<Context, Result>, Context) - Method in interface org.petitparser.parser.actions.ContinuationParser.ContinuationHandler
 

B

buffer - Variable in class org.petitparser.context.Context
The input buffer.
build() - Method in class org.petitparser.tools.ExpressionBuilder
Builds the expression parser.
build() - Method in class org.petitparser.tools.GrammarDefinition
Builds a parser starting from the production "start".
build(String) - Method in class org.petitparser.tools.GrammarDefinition
Builds a parser starting from the provided production name.

C

callCC(ContinuationParser.ContinuationHandler) - Method in class org.petitparser.parser.Parser
Returns a parser that is called with its current continuation.
character(char) - Static method in class org.petitparser.Chars
Deprecated.
character(char, String) - Static method in class org.petitparser.Chars
Deprecated.
CharacterParser - Class in org.petitparser.parser.primitive
Parses a single character.
CharacterPredicate - Interface in org.petitparser.parser.primitive
Character predicate.
CharacterPredicate.NotCharacterPredicate - Class in org.petitparser.parser.primitive
The negated character predicate.
CharacterPredicate.PatternParser - Class in org.petitparser.parser.primitive
 
Chars - Class in org.petitparser
Deprecated.
ChoiceParser - Class in org.petitparser.parser.combinators
A parser that uses the first parser that succeeds.
ChoiceParser(Parser...) - Constructor for class org.petitparser.parser.combinators.ChoiceParser
 
CompositeParser - Class in org.petitparser.tools
Deprecated.
CompositeParser() - Constructor for class org.petitparser.tools.CompositeParser
Deprecated.
 
constant(T) - Static method in class org.petitparser.utils.Functions
Returns a function that returns a constant value.
context - Variable in class org.petitparser.utils.Tracer.TraceEvent
The current parser context.
Context - Class in org.petitparser.context
An immutable parse context.
Context(String, int) - Constructor for class org.petitparser.context.Context
Constructs an immutable parse context.
ContinuationParser - Class in org.petitparser.parser.actions
Continuation parser that when activated captures a continuation function and passes it together with the current context into the handler.
ContinuationParser(Parser, ContinuationParser.ContinuationHandler) - Constructor for class org.petitparser.parser.actions.ContinuationParser
 
ContinuationParser.ContinuationHandler - Interface in org.petitparser.parser.actions
 
copy() - Method in class org.petitparser.parser.actions.ActionParser
 
copy() - Method in class org.petitparser.parser.actions.ContinuationParser
 
copy() - Method in class org.petitparser.parser.actions.FlattenParser
 
copy() - Method in class org.petitparser.parser.actions.TokenParser
 
copy() - Method in class org.petitparser.parser.actions.TrimmingParser
 
copy() - Method in class org.petitparser.parser.combinators.AndParser
 
copy() - Method in class org.petitparser.parser.combinators.ChoiceParser
 
copy() - Method in class org.petitparser.parser.combinators.DelegateParser
 
copy() - Method in class org.petitparser.parser.combinators.EndOfInputParser
 
copy() - Method in class org.petitparser.parser.combinators.NotParser
 
copy() - Method in class org.petitparser.parser.combinators.OptionalParser
 
copy() - Method in class org.petitparser.parser.combinators.SequenceParser
 
copy() - Method in class org.petitparser.parser.combinators.SettableParser
 
copy() - Method in class org.petitparser.parser.Parser
Returns a shallow copy of the receiver.
copy() - Method in class org.petitparser.parser.primitive.CharacterParser
 
copy() - Method in class org.petitparser.parser.primitive.EpsilonParser
 
copy() - Method in class org.petitparser.parser.primitive.FailureParser
 
copy() - Method in class org.petitparser.parser.primitive.StringParser
 
copy() - Method in class org.petitparser.parser.repeating.GreedyRepeatingParser
 
copy() - Method in class org.petitparser.parser.repeating.LazyRepeatingParser
 
copy() - Method in class org.petitparser.parser.repeating.PossessiveRepeatingParser
 

D

def(String, Parser) - Method in class org.petitparser.tools.CompositeParser
Deprecated.
Defines a production with a name and a parser.
def(String, Parser) - Method in class org.petitparser.tools.GrammarDefinition
Defines a production with a name and a parser.
delegate - Variable in class org.petitparser.parser.combinators.DelegateParser
 
DelegateParser - Class in org.petitparser.parser.combinators
A parser that delegates to another one.
DelegateParser(Parser) - Constructor for class org.petitparser.parser.combinators.DelegateParser
 
delimitedBy(Parser) - Method in class org.petitparser.parser.Parser
Returns a new parser that parses the receiver one or more times, separated and possibly ended by a separator."
digit() - Static method in class org.petitparser.Chars
Deprecated.
digit() - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts a single digit.
digit(String) - Static method in class org.petitparser.Chars
Deprecated.
digit(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 

E

elapsedNanoseconds - Variable in class org.petitparser.utils.Profiler.Profile
The total time this parser or any of its children has been active.
end() - Method in class org.petitparser.parser.Parser
Returns a parser that succeeds only if the receiver consumes the complete input.
end(String) - Method in class org.petitparser.parser.Parser
Returns a parser that succeeds only if the receiver consumes the complete input, otherwise return a failure with the message.
EndOfInputParser - Class in org.petitparser.parser.combinators
A parser that succeeds only at the end of the input stream.
EndOfInputParser(Parser, String) - Constructor for class org.petitparser.parser.combinators.EndOfInputParser
 
ENTER - org.petitparser.utils.Tracer.TraceEventType
 
epsilon() - Static method in class org.petitparser.Parsers
Deprecated.
EpsilonParser - Class in org.petitparser.parser.primitive
A parser that consumes nothing and always succeeds.
EpsilonParser() - Constructor for class org.petitparser.parser.primitive.EpsilonParser
 
equals(Object) - Method in class org.petitparser.context.Token
 
EXIT - org.petitparser.utils.Tracer.TraceEventType
 
ExpressionBuilder - Class in org.petitparser.tools
A builder that allows the simple definition of expression grammars with prefix, postfix, and left- and right-associative infix operators.
ExpressionBuilder() - Constructor for class org.petitparser.tools.ExpressionBuilder
 
ExpressionBuilder.ExpressionGroup - Class in org.petitparser.tools
Models a group of operators of the same precedence.
ExpressionGroup() - Constructor for class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
 

F

failure(String) - Method in class org.petitparser.context.Context
Returns a parse failure at the current position.
failure(String) - Static method in class org.petitparser.Parsers
Deprecated.
failure(String, int) - Method in class org.petitparser.context.Context
Returns a successful parse result.
Failure - Class in org.petitparser.context
An immutable parse failure.
Failure(String, int, String) - Constructor for class org.petitparser.context.Failure
 
FailureParser - Class in org.petitparser.parser.primitive
A parser that consumes nothing and always fails.
firstOfList() - Static method in class org.petitparser.utils.Functions
Returns a function that returns the first value of a list.
flatten() - Method in class org.petitparser.parser.Parser
Returns a parser that discards the result of the receiver, and returns a sub-string of the consumed range in the string/list being parsed.
FlattenParser - Class in org.petitparser.parser.actions
A parser that answers a flat copy of the range my delegate parses.
FlattenParser(Parser) - Constructor for class org.petitparser.parser.actions.FlattenParser
 
function - Variable in class org.petitparser.parser.actions.ActionParser
 
Functions - Class in org.petitparser.utils
Constructor and utility methods for functions.

G

get() - Method in class org.petitparser.context.Failure
 
get() - Method in class org.petitparser.context.Result
Returns the result of this parse context.
get() - Method in class org.petitparser.context.Success
 
get() - Method in class org.petitparser.parser.combinators.SettableParser
Return the current referred parser.
getBuffer() - Method in class org.petitparser.context.Context
Returns the input buffer.
getBuffer() - Method in class org.petitparser.context.Token
The backing buffer of the token.
getChildren() - Method in class org.petitparser.parser.actions.TrimmingParser
 
getChildren() - Method in class org.petitparser.parser.combinators.DelegateParser
 
getChildren() - Method in class org.petitparser.parser.combinators.ListParser
 
getChildren() - Method in class org.petitparser.parser.Parser
Returns a list of directly referring parsers.
getChildren() - Method in class org.petitparser.parser.repeating.LimitedRepeatingParser
 
getColumn() - Method in class org.petitparser.context.Token
The column number of this token.
getFailure() - Method in exception org.petitparser.context.ParseError
Return the parse Context causing this error.
getInput() - Method in class org.petitparser.context.Token
The consumed input of the token.
getLength() - Method in class org.petitparser.context.Token
The consumed input length of the token.
getLevel() - Method in class org.petitparser.utils.Tracer.TraceEvent
The current invocation level.
getLine() - Method in class org.petitparser.context.Token
The line number of the token.
getMessage() - Method in class org.petitparser.context.Failure
 
getMessage() - Method in class org.petitparser.context.Result
Returns the message of this parse context, only set in case of failure.
getPosition() - Method in class org.petitparser.context.Context
Returns the current position.
getStart() - Method in class org.petitparser.context.Token
The start position of the token in the buffer.
getStop() - Method in class org.petitparser.context.Token
The stop position of the token in the buffer.
getValue() - Method in class org.petitparser.context.Token
The resulting value of the token.
GrammarDefinition - Class in org.petitparser.tools
Helper to conveniently define and build complex, recursive grammars using plain Java code.
GrammarDefinition() - Constructor for class org.petitparser.tools.GrammarDefinition
 
GrammarParser - Class in org.petitparser.tools
A helper to build a parser from a GrammarDefinition.
GrammarParser(GrammarDefinition) - Constructor for class org.petitparser.tools.GrammarParser
 
GrammarParser(GrammarDefinition, String) - Constructor for class org.petitparser.tools.GrammarParser
 
GreedyRepeatingParser - Class in org.petitparser.parser.repeating
A greedy repeating parser, commonly seen in regular expression implementations.
GreedyRepeatingParser(Parser, Parser, int, int) - Constructor for class org.petitparser.parser.repeating.GreedyRepeatingParser
 
group() - Method in class org.petitparser.tools.ExpressionBuilder
Creates a new group of operators that share the same priority.

H

hasEqualChildren(Parser, Set<Parser>) - Method in class org.petitparser.parser.Parser
Compares the children of two parsers.
hasEqualProperties(Parser) - Method in class org.petitparser.parser.actions.ActionParser
 
hasEqualProperties(Parser) - Method in class org.petitparser.parser.actions.ContinuationParser
 
hasEqualProperties(Parser) - Method in class org.petitparser.parser.combinators.EndOfInputParser
 
hasEqualProperties(Parser) - Method in class org.petitparser.parser.combinators.NotParser
 
hasEqualProperties(Parser) - Method in class org.petitparser.parser.combinators.OptionalParser
 
hasEqualProperties(Parser) - Method in class org.petitparser.parser.Parser
Compares the properties of two parsers.
hasEqualProperties(Parser) - Method in class org.petitparser.parser.primitive.CharacterParser
 
hasEqualProperties(Parser) - Method in class org.petitparser.parser.primitive.FailureParser
 
hasEqualProperties(Parser) - Method in class org.petitparser.parser.primitive.StringParser
 
hasEqualProperties(Parser) - Method in class org.petitparser.parser.repeating.RepeatingParser
 
hashCode() - Method in class org.petitparser.context.Token
 

I

initialize() - Method in class org.petitparser.tools.CompositeParser
Deprecated.
Automatically called by the framework to initialize the grammar.
isEqualTo(Parser) - Method in class org.petitparser.parser.Parser
Recursively tests for structural similarity of two parsers.
isEqualTo(Parser, Set<Parser>) - Method in class org.petitparser.parser.Parser
Recursively tests for structural similarity of two parsers.
isFailure() - Method in class org.petitparser.context.Failure
 
isFailure() - Method in class org.petitparser.context.Result
Returns true if this result indicates a parse failure.
isSuccess() - Method in class org.petitparser.context.Result
Returns true if this result indicates a parse success.
isSuccess() - Method in class org.petitparser.context.Success
 
iterator() - Method in class org.petitparser.utils.Mirror
Returns an Iterator over parser and all its reachable descendants.

L

lastOfList() - Static method in class org.petitparser.utils.Functions
Returns a function that returns the last value of a list.
LazyRepeatingParser - Class in org.petitparser.parser.repeating
A lazy repeating parser, commonly seen in regular expression implementations.
LazyRepeatingParser(Parser, Parser, int, int) - Constructor for class org.petitparser.parser.repeating.LazyRepeatingParser
 
left(Parser) - Method in class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
Adds a left-associative operator parser.
left(Parser, Function<T, R>) - Method in class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
Adds a left-associative operator parser.
letter() - Static method in class org.petitparser.Chars
Deprecated.
letter() - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts a single letter.
letter(String) - Static method in class org.petitparser.Chars
Deprecated.
letter(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
limit - Variable in class org.petitparser.parser.repeating.LimitedRepeatingParser
 
LimitedRepeatingParser - Class in org.petitparser.parser.repeating
An abstract parser that repeatedly parses between 'min' and 'max' instances of its delegate and that requires the input to be completed with a specified parser 'limit'.
LimitedRepeatingParser(Parser, Parser, int, int) - Constructor for class org.petitparser.parser.repeating.LimitedRepeatingParser
 
lineAndColumnOf(String, int) - Static method in class org.petitparser.context.Token
Converts the position index in a buffer to a line and column tuple.
ListParser - Class in org.petitparser.parser.combinators
Abstract parser that parses a list of things in some way (to be specified by the subclasses).
ListParser(Parser...) - Constructor for class org.petitparser.parser.combinators.ListParser
 
lowerCase() - Static method in class org.petitparser.Chars
Deprecated.
lowerCase() - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts an lower-case letter.
lowerCase(String) - Static method in class org.petitparser.Chars
Deprecated.
lowerCase(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 

M

map(Function<A, B>) - Method in class org.petitparser.parser.Parser
Returns a parser that evaluates a function as the production action on success of the receiver.
matches(String) - Method in class org.petitparser.parser.Parser
Returns a list of all successful overlapping parses of the input.
matches(Parser, String) - Static method in class org.petitparser.Parsing
Deprecated.
matchesSkipping(String) - Method in class org.petitparser.parser.Parser
Returns a list of all successful non-overlapping parses of the input.
matchesSkipping(Parser, String) - Static method in class org.petitparser.Parsing
Deprecated.
max - Variable in class org.petitparser.parser.repeating.RepeatingParser
 
message - Variable in class org.petitparser.parser.combinators.EndOfInputParser
 
message - Variable in class org.petitparser.parser.combinators.NotParser
 
min - Variable in class org.petitparser.parser.repeating.RepeatingParser
 
Mirror - Class in org.petitparser.utils
A reflective parser mirror.

N

neg() - Method in class org.petitparser.parser.Parser
Returns a parser that consumes any input token (character), but the receiver.
neg(String) - Method in class org.petitparser.parser.Parser
Returns a parser that consumes any input token (character), but the receiver.
neg(String) - Method in class org.petitparser.parser.primitive.CharacterParser
 
NEWLINE_PARSER - Static variable in class org.petitparser.context.Token
Returns a parser for that detects newlines platform independently.
none() - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts no character.
none() - Static method in interface org.petitparser.parser.primitive.CharacterPredicate
Returns a character predicate that matches no character.
none(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
noneOf(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts none of the provided characters.
noneOf(String) - Static method in interface org.petitparser.parser.primitive.CharacterPredicate
Returns a character predicate that matches none of the characters in string.
noneOf(String, String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
not() - Method in class org.petitparser.parser.Parser
Returns a parser (logical not-predicate) that succeeds whenever the receiver fails, but never consumes input.
not() - Method in interface org.petitparser.parser.primitive.CharacterPredicate
Negates this character predicate.
not() - Method in class org.petitparser.parser.primitive.CharacterPredicate.NotCharacterPredicate
 
not(String) - Method in class org.petitparser.parser.Parser
Returns a parser (logical not-predicate) that succeeds whenever the receiver fails, but never consumes input.
NotCharacterPredicate(CharacterPredicate) - Constructor for class org.petitparser.parser.primitive.CharacterPredicate.NotCharacterPredicate
 
NotParser - Class in org.petitparser.parser.combinators
The not-predicate, a parser that succeeds whenever its delegate does not, but consumes no input [Parr 1994, 1995].
NotParser(Parser, String) - Constructor for class org.petitparser.parser.combinators.NotParser
 
nthOfList(int) - Static method in class org.petitparser.utils.Functions
Returns a function that returns the value at the given index.

O

of(char) - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts a specific character.
of(char) - Static method in interface org.petitparser.parser.primitive.CharacterPredicate
Returns a character predicate that matches the given character.
of(char, String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
of(String) - Static method in class org.petitparser.parser.primitive.StringParser
Construct a parser that accepts the provides String value.
of(String, String) - Static method in class org.petitparser.parser.primitive.StringParser
Construct a parser that accepts the provides String value, and that fails with the error provided error message.
of(Parser) - Static method in class org.petitparser.utils.Mirror
Constructs a mirror of the provided parser.
of(CharacterPredicate, String) - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts a specific CharacterPredicate.
ofIgnoringCase(String) - Static method in class org.petitparser.parser.primitive.StringParser
Construct a parser that accepts the provides String value case insensitive.
ofIgnoringCase(String, String) - Static method in class org.petitparser.parser.primitive.StringParser
Construct a parser that accepts the provides String value case insensitive, and that fails with the error provided error message.
on(Parser, Consumer<Profiler.Profile>) - Static method in class org.petitparser.utils.Profiler
Returns a parser that calls the provided consumer with a Profiler.Profile of every parser.
on(Parser, Consumer<Tracer.TraceEvent>) - Static method in class org.petitparser.utils.Tracer
Returns a parser that calls the provided consumer with a Tracer.TraceEvent whenever a parser is activated or returning.
Optimizer - Class in org.petitparser.utils
Tools to transform and optimize parser graphs.
Optimizer() - Constructor for class org.petitparser.utils.Optimizer
 
optional() - Method in class org.petitparser.parser.Parser
Returns new parser that accepts the receiver, if possible.
optional(Object) - Method in class org.petitparser.parser.Parser
Returns new parser that accepts the receiver, if possible.
OptionalParser - Class in org.petitparser.parser.combinators
A parser that optionally parsers its delegate, or answers nil.
OptionalParser(Parser, Object) - Constructor for class org.petitparser.parser.combinators.OptionalParser
 
or(Parser...) - Method in class org.petitparser.parser.combinators.ChoiceParser
 
or(Parser...) - Method in class org.petitparser.parser.Parser
Returns a parser that accepts the receiver or other.
org.petitparser - package org.petitparser
 
org.petitparser.context - package org.petitparser.context
 
org.petitparser.parser - package org.petitparser.parser
 
org.petitparser.parser.actions - package org.petitparser.parser.actions
 
org.petitparser.parser.combinators - package org.petitparser.parser.combinators
 
org.petitparser.parser.primitive - package org.petitparser.parser.primitive
 
org.petitparser.parser.repeating - package org.petitparser.parser.repeating
 
org.petitparser.tools - package org.petitparser.tools
 
org.petitparser.utils - package org.petitparser.utils
 
otherwise - Variable in class org.petitparser.parser.combinators.OptionalParser
 

P

parent - Variable in class org.petitparser.utils.Tracer.TraceEvent
The parent of this event.
parse(String) - Method in class org.petitparser.parser.Parser
Returns the parse result of the input.
parse(Parser, String) - Static method in class org.petitparser.Parsing
Deprecated.
ParseError - Exception in org.petitparser.context
A parse error.
ParseError(Failure) - Constructor for exception org.petitparser.context.ParseError
 
parseOn(Context) - Method in class org.petitparser.parser.actions.ActionParser
 
parseOn(Context) - Method in class org.petitparser.parser.actions.ContinuationParser
 
parseOn(Context) - Method in class org.petitparser.parser.actions.FlattenParser
 
parseOn(Context) - Method in class org.petitparser.parser.actions.TokenParser
 
parseOn(Context) - Method in class org.petitparser.parser.actions.TrimmingParser
 
parseOn(Context) - Method in class org.petitparser.parser.combinators.AndParser
 
parseOn(Context) - Method in class org.petitparser.parser.combinators.ChoiceParser
 
parseOn(Context) - Method in class org.petitparser.parser.combinators.DelegateParser
 
parseOn(Context) - Method in class org.petitparser.parser.combinators.EndOfInputParser
 
parseOn(Context) - Method in class org.petitparser.parser.combinators.NotParser
 
parseOn(Context) - Method in class org.petitparser.parser.combinators.OptionalParser
 
parseOn(Context) - Method in class org.petitparser.parser.combinators.SequenceParser
 
parseOn(Context) - Method in class org.petitparser.parser.Parser
Primitive method doing the actual parsing.
parseOn(Context) - Method in class org.petitparser.parser.primitive.CharacterParser
 
parseOn(Context) - Method in class org.petitparser.parser.primitive.EpsilonParser
 
parseOn(Context) - Method in class org.petitparser.parser.primitive.FailureParser
 
parseOn(Context) - Method in class org.petitparser.parser.primitive.StringParser
 
parseOn(Context) - Method in class org.petitparser.parser.repeating.GreedyRepeatingParser
 
parseOn(Context) - Method in class org.petitparser.parser.repeating.LazyRepeatingParser
 
parseOn(Context) - Method in class org.petitparser.parser.repeating.PossessiveRepeatingParser
 
parser - Variable in class org.petitparser.utils.Profiler.Profile
The parser being profiled.
parser - Variable in class org.petitparser.utils.Tracer.TraceEvent
The parser being traced.
Parser - Class in org.petitparser.parser
An abstract parser that forms the root of all parsers in this package.
Parser() - Constructor for class org.petitparser.parser.Parser
 
parsers - Variable in class org.petitparser.parser.combinators.ListParser
 
Parsers - Class in org.petitparser
Deprecated.
Parsing - Class in org.petitparser
Deprecated.
pattern(String) - Static method in class org.petitparser.Chars
Deprecated.
pattern(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts a specific character pattern.
pattern(String) - Static method in interface org.petitparser.parser.primitive.CharacterPredicate
Returns a character predicate that matches the provided pattern.
pattern(String, String) - Static method in class org.petitparser.Chars
Deprecated.
pattern(String, String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
PatternParser() - Constructor for class org.petitparser.parser.primitive.CharacterPredicate.PatternParser
 
permutationOfList(int...) - Static method in class org.petitparser.utils.Functions
Returns a function that returns the permutation of a given list.
permute(int...) - Method in class org.petitparser.parser.Parser
Returns a parser that transforms a successful parse result by returning the permuted elements at indexes of a list.
pick(int) - Method in class org.petitparser.parser.Parser
Returns a parser that transform a successful parse result by returning the element at index of a list.
plus() - Method in class org.petitparser.parser.Parser
Returns a parser that accepts the receiver one or more times.
plusGreedy(Parser) - Method in class org.petitparser.parser.Parser
Returns a parser that parses the receiver one or more times until it reaches limit.
plusLazy(Parser) - Method in class org.petitparser.parser.Parser
Returns a parser that parses the receiver one or more times until it reaches a limit.
position - Variable in class org.petitparser.context.Context
The current position.
PossessiveRepeatingParser - Class in org.petitparser.parser.repeating
A greedy parser that repeatedly parses between 'min' and 'max' instances of its delegate.
PossessiveRepeatingParser(Parser, int, int) - Constructor for class org.petitparser.parser.repeating.PossessiveRepeatingParser
 
postfix(Parser) - Method in class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
Adds a postfix operator parser.
postfix(Parser, Function<T, R>) - Method in class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
Adds a postfix operator parser.
prefix(Parser) - Method in class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
Adds a prefix operator parser.
prefix(Parser, Function<T, R>) - Method in class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
Adds a prefix operator parser.
primitive(Parser) - Method in class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
Defines a new primitive or literal parser.
Profiler - Class in org.petitparser.utils
Profiles the run-time of parsers.
Profiler.Profile - Class in org.petitparser.utils
The profile information about a parser.

R

range(char, char) - Static method in class org.petitparser.Chars
Deprecated.
range(char, char) - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts a specific character range.
range(char, char) - Static method in interface org.petitparser.parser.primitive.CharacterPredicate
Returns a character predicate that matches any character between start and stop.
range(char, char, String) - Static method in class org.petitparser.Chars
Deprecated.
range(char, char, String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
ranges(char[], char[]) - Static method in interface org.petitparser.parser.primitive.CharacterPredicate
Returns a character predicate that matches character ranges between starts and stops.
redef(String, Function<Parser, Parser>) - Method in class org.petitparser.tools.CompositeParser
Deprecated.
Redefines an existing production with a name and a function producing a new parser.
redef(String, Function<Parser, Parser>) - Method in class org.petitparser.tools.GrammarDefinition
Redefines an existing production with a name and a function producing a new parser.
redef(String, Parser) - Method in class org.petitparser.tools.CompositeParser
Deprecated.
Redefines an existing production with a name and a new parser.
redef(String, Parser) - Method in class org.petitparser.tools.GrammarDefinition
Redefines an existing production with a name and a new parser.
ref(String) - Method in class org.petitparser.tools.CompositeParser
Deprecated.
Returns a reference to the production with the given name.
ref(String) - Method in class org.petitparser.tools.GrammarDefinition
Returns a reference to the production with the given name.
removeDelegates() - Method in class org.petitparser.utils.Optimizer
Adds a transformer that removes unnecessary delegates.
removeDuplicates() - Method in class org.petitparser.utils.Optimizer
Adds a transformer that collapses unnecessary copies of parsers.
repeat(int, int) - Method in class org.petitparser.parser.Parser
Returns a parser that accepts the receiver between min and max times.
repeatGreedy(Parser, int, int) - Method in class org.petitparser.parser.Parser
Returns a parser that parses the receiver at least min and at most max times until it reaches a limit.
RepeatingParser - Class in org.petitparser.parser.repeating
An abstract parser that repeatedly parses between 'min' and 'max' instances of its delegate.
RepeatingParser(Parser, int, int) - Constructor for class org.petitparser.parser.repeating.RepeatingParser
 
repeatLazy(Parser, int, int) - Method in class org.petitparser.parser.Parser
Returns a parser that parses the receiver at least min and at most max times until it reaches a limit.
replace(Parser, Parser) - Method in class org.petitparser.parser.actions.TrimmingParser
 
replace(Parser, Parser) - Method in class org.petitparser.parser.combinators.DelegateParser
 
replace(Parser, Parser) - Method in class org.petitparser.parser.combinators.ListParser
 
replace(Parser, Parser) - Method in class org.petitparser.parser.Parser
Replaces the referring parser source with target.
replace(Parser, Parser) - Method in class org.petitparser.parser.repeating.LimitedRepeatingParser
 
Result - Class in org.petitparser.context
An immutable abstract parse result.
Result(String, int) - Constructor for class org.petitparser.context.Result
 
right(Parser) - Method in class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
Adds a right-associative operator parser.
right(Parser, Function<T, R>) - Method in class org.petitparser.tools.ExpressionBuilder.ExpressionGroup
Adds a right-associative operator parser.

S

separatedBy(Parser) - Method in class org.petitparser.parser.Parser
Returns a new parser that parses the receiver one or more times, separated by a separator.
seq(Parser...) - Method in class org.petitparser.parser.combinators.SequenceParser
 
seq(Parser...) - Method in class org.petitparser.parser.Parser
Returns a parser that accepts the receiver followed by others.
SequenceParser - Class in org.petitparser.parser.combinators
A parser that parses a sequence of parsers.
SequenceParser(Parser...) - Constructor for class org.petitparser.parser.combinators.SequenceParser
 
set(Parser) - Method in class org.petitparser.parser.combinators.SettableParser
Replace the current referred parser with a new delegate.
settable() - Method in class org.petitparser.parser.Parser
Returns a parser that points to the receiver, but can be changed to point to something else at a later point in time.
SettableParser - Class in org.petitparser.parser.combinators
A parser that can be set to behave like another parser.
SettableParser(Parser) - Constructor for class org.petitparser.parser.combinators.SettableParser
 
star() - Method in class org.petitparser.parser.Parser
Returns a parser that accepts the receiver zero or more times.
starGreedy(Parser) - Method in class org.petitparser.parser.Parser
Returns a parser that parses the receiver zero or more times until it reaches a limit.
starLazy(Parser) - Method in class org.petitparser.parser.Parser
Returns a parser that parses the receiver zero or more times until it reaches a limit.
stream() - Method in class org.petitparser.utils.Mirror
Returns a Stream over parser and all its reachable descendants.
string(String) - Static method in class org.petitparser.Parsers
Deprecated.
string(String, String) - Static method in class org.petitparser.Parsers
Deprecated.
stringIgnoreCase(String) - Static method in class org.petitparser.Parsers
Deprecated.
stringIgnoreCase(String, String) - Static method in class org.petitparser.Parsers
Deprecated.
StringParser - Class in org.petitparser.parser.primitive
Parses a sequence of characters.
success(Object) - Method in class org.petitparser.context.Context
Returns a successful parse result at the current position.
success(Object, int) - Method in class org.petitparser.context.Context
Returns a successful parse result.
Success - Class in org.petitparser.context
An immutable parse success.
Success(String, int, Object) - Constructor for class org.petitparser.context.Success
 

T

test(char) - Method in class org.petitparser.parser.primitive.CharacterPredicate.NotCharacterPredicate
 
test(char) - Method in interface org.petitparser.parser.primitive.CharacterPredicate
Tests if the character predicate is satisfied.
times(int) - Method in class org.petitparser.parser.Parser
Returns a parser that accepts the receiver exactly count times.
token() - Method in class org.petitparser.parser.Parser
Returns a parser that returns a Token.
Token - Class in org.petitparser.context
A immutable token represents a parsed part of the input.
Token(String, int, int, Object) - Constructor for class org.petitparser.context.Token
Constructs a token from the parsed value, the input buffer, and the start and stop position in the input buffer.
TokenParser - Class in org.petitparser.parser.actions
A parser that creates a token from the parsed input.
TokenParser(Parser) - Constructor for class org.petitparser.parser.actions.TokenParser
 
toString() - Method in class org.petitparser.context.Context
 
toString() - Method in class org.petitparser.context.Failure
 
toString() - Method in class org.petitparser.context.Success
 
toString() - Method in class org.petitparser.context.Token
 
toString() - Method in class org.petitparser.parser.combinators.EndOfInputParser
 
toString() - Method in class org.petitparser.parser.combinators.NotParser
 
toString() - Method in class org.petitparser.parser.Parser
Returns a human readable string identifying this parser.
toString() - Method in class org.petitparser.parser.primitive.CharacterParser
 
toString() - Method in class org.petitparser.parser.primitive.FailureParser
 
toString() - Method in class org.petitparser.parser.primitive.StringParser
 
toString() - Method in class org.petitparser.parser.repeating.RepeatingParser
 
toString() - Method in class org.petitparser.utils.Mirror
 
toString() - Method in class org.petitparser.utils.Profiler.Profile
 
toString() - Method in class org.petitparser.utils.Tracer.TraceEvent
 
totalActivationCount - Variable in class org.petitparser.utils.Profiler.Profile
The number of times the parser got activated in total (including nested calls).
Tracer - Class in org.petitparser.utils
Traces the activation and return of parsers.
Tracer() - Constructor for class org.petitparser.utils.Tracer
 
Tracer.TraceEvent - Class in org.petitparser.utils
The trace event holding all relevant data.
Tracer.TraceEventType - Enum in org.petitparser.utils
The trace event type differentiating between activation and return.
transform(Function<Parser, Parser>) - Method in class org.petitparser.utils.Mirror
Returns a transformed copy of all parsers reachable from parser.
transform(Parser) - Method in class org.petitparser.utils.Optimizer
Transforms the provided parsers using the selected optimizations.
trim() - Method in class org.petitparser.parser.Parser
Returns a parser that consumes whitespace before and after the receiver.
trim(Parser) - Method in class org.petitparser.parser.Parser
Returns a parser that consumes input on both sides of the receiver.
trim(Parser, Parser) - Method in class org.petitparser.parser.Parser
Returns a parser that consumes input before and after the receiver.
TrimmingParser - Class in org.petitparser.parser.actions
A parser that silently consumes a before and after the delegate parser.
TrimmingParser(Parser, Parser, Parser) - Constructor for class org.petitparser.parser.actions.TrimmingParser
 
type - Variable in class org.petitparser.utils.Tracer.TraceEvent
The type of this event.

U

UNBOUNDED - Static variable in class org.petitparser.parser.repeating.RepeatingParser
 
undefined() - Static method in class org.petitparser.parser.combinators.SettableParser
Constructs a SettableParser that currently refers to an FailureParser.
undefined(String) - Static method in class org.petitparser.parser.combinators.SettableParser
Constructs a SettableParser that currently refers to an FailureParser with the provided message.
upperCase() - Static method in class org.petitparser.Chars
Deprecated.
upperCase() - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts an upper-case letter.
upperCase(String) - Static method in class org.petitparser.Chars
Deprecated.
upperCase(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 

V

valueOf(String) - Static method in enum org.petitparser.utils.Tracer.TraceEventType
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.petitparser.utils.Tracer.TraceEventType
Returns an array containing the constants of this enum type, in the order they are declared.

W

whitespace() - Static method in class org.petitparser.Chars
Deprecated.
whitespace() - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts a single whitespace.
whitespace(String) - Static method in class org.petitparser.Chars
Deprecated.
whitespace(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
with(Parser) - Static method in class org.petitparser.parser.combinators.SettableParser
Constructs a SettableParser referring to the supplied parser.
withMessage(String) - Static method in class org.petitparser.parser.primitive.FailureParser
Construct a FailureParser that fails with the supplied message.
withoutSeparators() - Static method in class org.petitparser.utils.Functions
Returns a function that skips the separators of a given list, see Parser.separatedBy(Parser).
word() - Static method in class org.petitparser.Chars
Deprecated.
word() - Static method in class org.petitparser.parser.primitive.CharacterParser
Returns a parser that accepts a single letter or digit.
word(String) - Static method in class org.petitparser.Chars
Deprecated.
word(String) - Static method in class org.petitparser.parser.primitive.CharacterParser
 
A B C D E F G H I L M N O P R S T U V W 
Skip navigation links

Copyright © 2018 PetitParser. All rights reserved.