Uses of Class
eu.bandm.tools.ramus.ogma.Parser
Packages that use Parser
Package
Description
Dynamic building blocks for recursive-descent parsers.
-
Uses of Parser in eu.bandm.tools.ramus.ogma
Methods in eu.bandm.tools.ramus.ogma that return ParserModifier and TypeMethodDescriptionFollows the behavior of this parser sequentially with another.Parser.andThen(Parser<D, T> other, Parser.Pragma... pragmas) Follows the behavior of this parser sequentially with another.Parser.andThenCombining(Parser<D, T> other, Action.BiContinuation<Data, Data, Data, SimpleMessage<D>, State> combiner, Parser.Pragma... pragmas) Follows the behavior of this parser sequentially with another, combining the result values.final <D,T> Parser <D, T> ParserFactory.andThenCombining(Parser<D, T> first, Parser<D, T> second, Action.BiContinuation<Data, Data, Data, SimpleMessage<D>, State> combiner, Parser.Pragma... pragmas) Follows the behavior of one parser sequentially with another, combining the result values.Adds the assignment of the result value to a semantic variable to the behavior of this parser.final <D,T> Parser <D, T> Adds the assignment of the accumulator value to a semantic variable to the behavior of a given parser.static <D,T> Parser <D, T> Deprecated.static <D,T> Parser <D, T> Deprecated.UseParserFactory.choice(List)instead.final <D,T> Parser <D, T> Alternates the behavior of several parsers in nondeterministic choice.final <D,T> Parser <D, T> Alternates the behavior of several parsers in nondeterministic choice.Parser.closeAndRepeat(Parser.Pragma... pragmas) Returns a parser that behaves like this parser if consumed input is followed by more input of the same syntax.Parser.closeAndTerminate(T endType, Parser.Pragma... pragmas) Returns a parser that behaves like this parser if consumed input is followed by the specified token type.Parser.collecting()Adds the collecting of the result value in a sequence to the behavior of this parser.final <D,T> Parser <D, T> ParserFactory.collecting(Parser<D, T> body) Makes a given parser collect results in a sequence.static <D,T> Parser <D, T> Deprecated.UseParserFactory.constant(Object)instead.final <D,T> Parser <D, T> Returns a parser that succeeds and sets the result to the given value, consuming no tokens.Parser.diagnose(SimpleMessage<D>... msgs) Add diagnostic messages to the behavior of this parser.Add diagnostic messages to the behavior of this parser.final <D,T> Parser <D, T> ParserFactory.diagnose(Parser<D, T> body, SimpleMessage<D>... msgs) Adds diagnostic messages to the behavior of a given parser.final <D,T> Parser <D, T> ParserFactory.diagnose(Parser<D, T> body, Function<? super Input<D, T>, ? extends List<? extends SimpleMessage<D>>> msgs) Add diagnostic messages to the behavior of a given parser.static <D,T> Parser <D, T> Parser.endInterval()Deprecated.UseParserFactory.startInterval()instead.final <D,T> Parser <D, T> ParserFactory.endInterval()Returns a parser that sets the result value to the token location before the current input state.static <D,T> Parser <D, T> Parser.fail()Deprecated.UseParserFactory.fail()instead.final <D,T> Parser <D, T> ParserFactory.fail()Returns a parser that fails immediately.static <D,T> Parser <D, T> Parser.fix(UnaryOperator<Parser<D, T>> loop, Parser.Pragma... pragmas) Deprecated.UseParserFactory.fix(UnaryOperator, Pragma[])instead.final <D,T> Parser <D, T> ParserFactory.fix(UnaryOperator<Parser<D, T>> loop, Parser.Pragma... pragmas) Computes the fixpoint of a recursive parser definition.final <D,T> Parser <D, T> ParserFactory.fix(UnaryOperator<Parser<D, T>> loop, UnaryOperator<Parser<D, T>> polish, Parser.Pragma... pragmas) AbstractExpression.getSyntax()Returns the parser that specifies the syntax of this expression.Returns a parser that extends the behavior of this parser with a mandatory check and conditional error diagnostics.static <D,T> Parser <D, T> Parser.identity()Deprecated.UseParserFactory.identity()instead.final <D,T> Parser <D, T> ParserFactory.identity()Returns a parser that succeeds with no effect, consuming no tokens.static <D,T> Parser <D, T> Parser.ifThenElse(Predicate<Token<D, T>> condition, Parser<D, T> thenBranch, Parser<D, T> elseBranch) Deprecated.UseParserFactory.ifThenElse(Predicate, Parser, Parser)instead.final <D,T> Parser <D, T> ParserFactory.ifThenElse(Predicate<Token<D, T>> condition, Parser<D, T> thenBranch, Parser<D, T> elseBranch) Alternates the behavior of two parsers in deterministic choice, depending on the next input token.Parser.ignoringResult()Removes the setting of the result value from the semantic effect of this parser.final <D,T> Parser <D, T> ParserFactory.ignoringResult(Parser<D, T> body) Removes the setting of the accumulator value from the semantic effect of a given parser.static <D,T> Parser <D, T> Parser.lookbehind(Predicate<? super Token<D, T>> match) Deprecated.UseParserFactory.lookbehind(Predicate)instead.static <D,T> Parser <D, T> Parser.lookbehind(Set<T> types) Deprecated.UseParserFactory.lookbehind(Set)instead.static <D,T> Parser <D, T> Parser.lookbehind(T... types) Deprecated.UseParserFactory.lookbehind(Object[])instead.final <D,T> Parser <D, T> ParserFactory.lookbehind(Predicate<? super Token<D, T>> match) Returns a parser that succeeds if and only if the preceding token matches a given predicate.final <D,T> Parser <D, T> ParserFactory.lookbehind(Set<T> types) Returns a parser that succeeds if and only if the preceding token is of one of the given types.final <D,T> Parser <D, T> ParserFactory.lookbehind(T... types) Returns a parser that succeeds if and only if the preceding token is of one of the given types.static <D,T> Parser <D, T> Parser.lookup(Map<T, Parser<D, T>> alts, Parser.Pragma... pragmas) Deprecated.UseParserFactory.lookup(Map, Pragma[])instead.static <D,T> Parser <D, T> Parser.lookup(Map<T, Parser<D, T>> alts, Parser<D, T> otherwise, Parser.Pragma... pragmas) Deprecated.UseParserFactory.lookup(Map, Parser, Pragma[])instead.final <D,T> Parser <D, T> ParserFactory.lookup(Map<T, Parser<D, T>> alts, Parser.Pragma... pragmas) Alternates the behavior of several parsers in deterministic choice, depending on the next input token.final <D,T> Parser <D, T> ParserFactory.lookup(Map<T, Parser<D, T>> alts, Parser<D, T> otherwise, Parser.Pragma... pragmas) Alternates the behavior of several parsers in deterministic choice, depending on the next input token.Parser.map(UnaryOperator<Data> transform) Adds a final transformation of the result value to the behavior of this parser.final <D,T> Parser <D, T> ParserFactory.map(Parser<D, T> body, UnaryOperator<Data> transform) Adds a final transformation of the result value to the behavior of a given parser.Parser.negate()Returns a parser that succeeds if this parser fails, and vice versa.final <D,T> Parser <D, T> Returns a parser that succeeds if the given parser fails, and vice versa.Parser.optional(Parser.Pragma... pragmas) Returns a parser that behaves like this parser, or alternatively does nothing.Parser.optionalTagged(Parser.Pragma... pragmas) Returns a parser that behaves like this parser, or alternatively does nothing, setting a corresponding result value.Parser.optionalTagged(Parser<D, T> defaultBranch, Parser.Pragma... pragmas) Returns a parser that behaves like this parser, or some alternative without result value.Parser.orElse(Parser<D, T> other, Parser.Pragma... pragmas) Alternates the behavior of this parser with another in nondeterministic choice.Returns the effective parser for the argument fragment.Returns the effective parser for the argument fragments.ReducerFactory.Constructor3.parse(Fragment<D, T, ? extends A1> arg1, Fragment<D, T, ? extends A2> arg2, Fragment<D, T, ? extends A3> arg3) Returns the effective parser for the argument fragments.ReducerFactory.Constructor4.parse(Fragment<D, T, ? extends A1> arg1, Fragment<D, T, ? extends A2> arg2, Fragment<D, T, ? extends A3> arg3, Fragment<D, T, ? extends A4> arg4) Returns the effective parser for the argument fragments.ReducerFactory.Constructor5.parse(Fragment<D, T, ? extends A1> arg1, Fragment<D, T, ? extends A2> arg2, Fragment<D, T, ? extends A3> arg3, Fragment<D, T, ? extends A4> arg4, Fragment<D, T, ? extends A5> arg5) Returns the effective parser for the argument fragments.ReducerFactory.Constructor6.parse(AbstractExpression<D, T, ? extends A1> arg1, AbstractExpression<D, T, ? extends A2> arg2, AbstractExpression<D, T, ? extends A3> arg3, AbstractExpression<D, T, ? extends A4> arg4, AbstractExpression<D, T, ? extends A5> arg5, AbstractExpression<D, T, ? extends A6> arg6) Returns the effective parser for the argument fragments.ReducerFactory.Constructor7.parse(AbstractExpression<D, T, ? extends A1> arg1, AbstractExpression<D, T, ? extends A2> arg2, AbstractExpression<D, T, ? extends A3> arg3, AbstractExpression<D, T, ? extends A4> arg4, AbstractExpression<D, T, ? extends A5> arg5, AbstractExpression<D, T, ? extends A6> arg6, AbstractExpression<D, T, ? extends A7> arg7) Returns the effective parser for the argument fragments.Parser.plus(Parser.Pragma... pragmas) Returns a parser that behaves as the sequential iteration of this parser, one or more times.Parser.plusSequence(Parser.Pragma... pragmas) Returns a parser that behaves as the sequential iteration of this parser, one or more times, and collects the result values in a sequence.Parser.plusSequence(Parser<D, T> separator, Parser.Pragma... pragmas) Returns a parser that behaves as the sequential iteration of this parser, one or more times, interspersed with a separator parser, and collects the result values in a sequence.Parser.postprocess(Action.Continuation<State, State, SimpleMessage<D>, State> cont) Appends an ad-hoc continuation to the semantic effect of this parser.Parser.postprocess(Action.Continuation<State, State, SimpleMessage<D>, State> cont, String description) Appends an ad-hoc continuation to the semantic effect of this parser.Parser.postprocess(Action.Continuation<State, State, SimpleMessage<D>, State> cont, Supplier<String> description) Appends an ad-hoc continuation to the semantic effect of this parser.Parser.postprocess(Update<SimpleMessage<D>> effect) Appends to the semantic effect of this parser.final <D,T> Parser <D, T> ParserFactory.postprocess(Parser<D, T> body, Update<SimpleMessage<D>> effect) Appends to the semantic effect of a given parser.static <D,T> Parser <D, T> Deprecated.UseParserFactory.sequence(Parser[])instead.static <D,T> Parser <D, T> Deprecated.UseParserFactory.sequence(List)instead.final <D,T> Parser <D, T> Combines the behavior of several parsers sequentially.final <D,T> Parser <D, T> Combines the behavior of several parsers sequentially.static <D,T> Parser <D, T> Parser.sideEffect(Runnable effect) Deprecated.UseParserFactory.sideEffect(Runnable)instead.static <D,T> Parser <D, T> Parser.sideEffect(Consumer<Input<D, T>> effect) Deprecated.UseParserFactory.sideEffect(Consumer)instead.final <D,T> Parser <D, T> ParserFactory.sideEffect(Runnable effect) Returns a parser that always succeeds without semantic effect, and performs the given side effect directly.final <D,T> Parser <D, T> ParserFactory.sideEffect(Consumer<Input<D, T>> effect) Returns a parser that always succeeds without semantic effect, and performs the given side effect directly.Parser.star(Parser.Pragma... pragmas) Returns a parser that behaves as the sequential iteration of this parser, zero or more times.Parser.starSequence(Parser.Pragma... pragmas) Returns a parser that behaves as the sequential iteration of this parser, zero or more times, and collects the result values in a sequence.Parser.starSequence(Parser<D, T> separator, Parser.Pragma... pragmas) Returns a parser that behaves as the sequential iteration of this parser, zero or more times, interspersed with a separator parser, and collects the result values in a sequence.static <D,T> Parser <D, T> Parser.startCollection()Deprecated.UseParserFactory.startCollection()instead.final <D,T> Parser <D, T> ParserFactory.startCollection()Returns a parser that succeeds and sets the result to the empty sequence, consuming no tokens.static <D,T> Parser <D, T> Parser.startInterval()Deprecated.UseParserFactory.startInterval()instead.final <D,T> Parser <D, T> ParserFactory.startInterval()Returns a parser that sets the result value to the token location at the current input state.static <D,T> Parser <D, T> Parser.succeed(Update<SimpleMessage<D>> effect) Deprecated.UseParserFactory.succeed(Update)instead.final <D,T> Parser <D, T> ParserFactory.succeed(Update<SimpleMessage<D>> effect) Returns a parser that succeeds with the given effect, consuming no tokens.static <D,T> Parser <D, T> Parser.succeedGivenInput(Function<? super Input<D, T>, ? extends Update<SimpleMessage<D>>> effect) Deprecated.UseParserFactory.succeedGivenInput(Function)instead.final <D,T> Parser <D, T> ParserFactory.succeedGivenInput(Function<? super Input<D, T>, ? extends Update<SimpleMessage<D>>> effect) Returns a parser that succeeds with the given state-dependent effect, consuming no tokens.static <D,T> Parser <D, T> Parser.terminal()Deprecated.UseParserFactory.terminal()instead.static <D,T> Parser <D, T> Deprecated.UseParserFactory.terminal(Predicate)instead.static <D,T> Parser <D, T> Parser.terminal(T type) Deprecated.UseParserFactory.terminal(Object)instead.static <D,T> Parser <D, T> Deprecated.UseParserFactory.terminal(Object, Predicate)instead.final <D,T> Parser <D, T> ParserFactory.terminal()Returns a parser that consumes any single token.final <D,T> Parser <D, T> Returns a parser that consumes a single token matching a given predicate.final <D,T> Parser <D, T> ParserFactory.terminal(T type) Returns a parser that consumes a single token of a given type.final <D,T> Parser <D, T> Returns a parser that consumes a single token of a given type and text.Adds start and end location tracking to a given parser.Parser.whenFollowedBy(Predictor<T> following, Rewriting<Parser<D, T>, Predictor<T>, Parser.Pragma[]>.Context context) Parser.whenFollowedBy(Predictor<T> following, Parser.Pragma... pragmas) Returns a parser that behaves like this parser if consumed input is followed by the specified token types.Parser.withOtherTokenSource(LookaheadTokenMultiplexer<K, D, T, ?> multi, K newKey) Extends the behavior of this parser by switching input token sources.Wraps the behavior of this parser in a local scope for a set of semantic variables bound by grammar fragments.Wraps the behavior of this parser in a local scope for a semantic variable.Wraps the behavior of this parser in a local scope for a set of semantic variables bound by grammar fragments.Wraps the behavior of this parser in a local scope for a set of semantic variables.final <D,T> Parser <D, T> Wraps the behavior of a given parser in a local scope for a semantic variable.final <D,T> Parser <D, T> Wraps the behavior of a given in a local scope for a set of semantic variables.Adds side effects to this parser to be performed directly before and after, respectively.final <D,T> Parser <D, T> ParserFactory.withSideEffects(Consumer<Input<D, T>> pre, Parser<D, T> body, Consumer<Input<D, T>> post) Adds side effects to a given parser to be performed directly before and after, respectively.Methods in eu.bandm.tools.ramus.ogma that return types with arguments of type ParserModifier and TypeMethodDescription@Opt LocationTree<String, Parser<?, ?>> Parser.getLocationTree()Returns the location tree for this parser if available.Methods in eu.bandm.tools.ramus.ogma with parameters of type ParserModifier and TypeMethodDescriptionFollows the behavior of this parser sequentially with another.Parser.andThen(Parser<D, T> other, Parser.Pragma... pragmas) Follows the behavior of this parser sequentially with another.Parser.andThenCombining(Parser<D, T> other, Action.BiContinuation<Data, Data, Data, SimpleMessage<D>, State> combiner, Parser.Pragma... pragmas) Follows the behavior of this parser sequentially with another, combining the result values.final <D,T> Parser <D, T> ParserFactory.andThenCombining(Parser<D, T> first, Parser<D, T> second, Action.BiContinuation<Data, Data, Data, SimpleMessage<D>, State> combiner, Parser.Pragma... pragmas) Follows the behavior of one parser sequentially with another, combining the result values.Returns a reading that matches the syntax of this reading with a suffix, with the same semantic interpretation.final <D,T> Parser <D, T> Adds the assignment of the accumulator value to a semantic variable to the behavior of a given parser.static <D,T> Parser <D, T> Deprecated.UseParserFactory.choice(Parser[])instead.final <D,T> Parser <D, T> Alternates the behavior of several parsers in nondeterministic choice.final <D,T> Parser <D, T> ParserFactory.collecting(Parser<D, T> body) Makes a given parser collect results in a sequence.static <D,T, A> Reading <D, T, A> Deprecated.UseReadingFactory.constant(Parser, Object)instead.final <D,T, A> Reading <D, T, A> Returns a reading with the given syntax and a constant semantic interpretation.final <D,T> Parser <D, T> ParserFactory.diagnose(Parser<D, T> body, SimpleMessage<D>... msgs) Adds diagnostic messages to the behavior of a given parser.final <D,T> Parser <D, T> ParserFactory.diagnose(Parser<D, T> body, Function<? super Input<D, T>, ? extends List<? extends SimpleMessage<D>>> msgs) Add diagnostic messages to the behavior of a given parser.static <D,T> Parser <D, T> Parser.ifThenElse(Predicate<Token<D, T>> condition, Parser<D, T> thenBranch, Parser<D, T> elseBranch) Deprecated.UseParserFactory.ifThenElse(Predicate, Parser, Parser)instead.final <D,T> Parser <D, T> ParserFactory.ifThenElse(Predicate<Token<D, T>> condition, Parser<D, T> thenBranch, Parser<D, T> elseBranch) Alternates the behavior of two parsers in deterministic choice, depending on the next input token.final <D,T> Parser <D, T> ParserFactory.ignoringResult(Parser<D, T> body) Removes the setting of the accumulator value from the semantic effect of a given parser.static <D,T> Parser <D, T> Parser.lookup(Map<T, Parser<D, T>> alts, Parser<D, T> otherwise, Parser.Pragma... pragmas) Deprecated.UseParserFactory.lookup(Map, Parser, Pragma[])instead.final <D,T> Parser <D, T> ParserFactory.lookup(Map<T, Parser<D, T>> alts, Parser<D, T> otherwise, Parser.Pragma... pragmas) Alternates the behavior of several parsers in deterministic choice, depending on the next input token.final <D,T> Parser <D, T> ParserFactory.map(Parser<D, T> body, UnaryOperator<Data> transform) Adds a final transformation of the result value to the behavior of a given parser.final <D,T> Parser <D, T> Returns a parser that succeeds if the given parser fails, and vice versa.Reading.optionalOrElse(Parser<D, T> defaultSyntax, Parser.Pragma... pragmas) Returns a reading that matches the syntax of this reading with optional interpretation, or otherwise match some alternative syntax.Parser.optionalTagged(Parser<D, T> defaultBranch, Parser.Pragma... pragmas) Returns a parser that behaves like this parser, or some alternative without result value.Parser.orElse(Parser<D, T> other, Parser.Pragma... pragmas) Alternates the behavior of this parser with another in nondeterministic choice.Reading.plus(Parser<D, T> sep, Parser.Pragma... pragmas) Returns a reading that matches one or more repetitions of this reading with intervening separator syntax.Parser.plusSequence(Parser<D, T> separator, Parser.Pragma... pragmas) Returns a parser that behaves as the sequential iteration of this parser, one or more times, interspersed with a separator parser, and collects the result values in a sequence.final <D,T> Parser <D, T> ParserFactory.postprocess(Parser<D, T> body, Update<SimpleMessage<D>> effect) Appends to the semantic effect of a given parser.Returns a reading that matches the syntax of this reading with a prefix, with the same semantic interpretation.static <D,T> Parser <D, T> Deprecated.UseParserFactory.sequence(Parser[])instead.final <D,T> Parser <D, T> Combines the behavior of several parsers sequentially.Reading.star(Parser<D, T> sep, Parser.Pragma... pragmas) Returns a reading that matches zero or more repetitions of this reading with intervening separator syntax.Parser.starSequence(Parser<D, T> separator, Parser.Pragma... pragmas) Returns a parser that behaves as the sequential iteration of this parser, zero or more times, interspersed with a separator parser, and collects the result values in a sequence.Adds start and end location tracking to a given parser.Deprecated.UseReadingFactory.unit(Parser)instead.Returns a reading that matches the given syntax with zero-information semantic interpretation.final <D,T> Parser <D, T> Wraps the behavior of a given parser in a local scope for a semantic variable.final <D,T> Parser <D, T> Wraps the behavior of a given in a local scope for a set of semantic variables.final <D,T> Parser <D, T> ParserFactory.withSideEffects(Consumer<Input<D, T>> pre, Parser<D, T> body, Consumer<Input<D, T>> post) Adds side effects to a given parser to be performed directly before and after, respectively.Returns a reading that matches the syntax of this reading with a prefix and suffix, with the same semantic interpretation.Method parameters in eu.bandm.tools.ramus.ogma with type arguments of type ParserModifier and TypeMethodDescriptionstatic <D,T> Parser <D, T> Deprecated.UseParserFactory.choice(List)instead.final <D,T> Parser <D, T> Alternates the behavior of several parsers in nondeterministic choice.static <D,T> Parser <D, T> Parser.fix(UnaryOperator<Parser<D, T>> loop, Parser.Pragma... pragmas) Deprecated.UseParserFactory.fix(UnaryOperator, Pragma[])instead.final <D,T> Parser <D, T> ParserFactory.fix(UnaryOperator<Parser<D, T>> loop, Parser.Pragma... pragmas) Computes the fixpoint of a recursive parser definition.final <D,T> Parser <D, T> ParserFactory.fix(UnaryOperator<Parser<D, T>> loop, UnaryOperator<Parser<D, T>> polish, Parser.Pragma... pragmas) static <D,T> Parser <D, T> Parser.lookup(Map<T, Parser<D, T>> alts, Parser.Pragma... pragmas) Deprecated.UseParserFactory.lookup(Map, Pragma[])instead.static <D,T> Parser <D, T> Parser.lookup(Map<T, Parser<D, T>> alts, Parser<D, T> otherwise, Parser.Pragma... pragmas) Deprecated.UseParserFactory.lookup(Map, Parser, Pragma[])instead.final <D,T> Parser <D, T> ParserFactory.lookup(Map<T, Parser<D, T>> alts, Parser.Pragma... pragmas) Alternates the behavior of several parsers in deterministic choice, depending on the next input token.final <D,T> Parser <D, T> ParserFactory.lookup(Map<T, Parser<D, T>> alts, Parser<D, T> otherwise, Parser.Pragma... pragmas) Alternates the behavior of several parsers in deterministic choice, depending on the next input token.static <D,T> Parser <D, T> Deprecated.UseParserFactory.sequence(List)instead.final <D,T> Parser <D, T> Combines the behavior of several parsers sequentially.Constructors in eu.bandm.tools.ramus.ogma with parameters of type ParserModifierConstructorDescriptionprotectedAbstractExpression(Parser<D, T> syntax, Data.View<A> semantics, State.Projection projection) Creates a new instance.Creates a new fragment.Creates a new fragment.
ParserFactory.choice(Parser[])instead.