Uses of Interface
eu.bandm.tools.ramus.ogma.Input
Packages that use Input
Package
Description
Dynamic building blocks for recursive-descent parsers.
-
Uses of Input in eu.bandm.tools.ramus.ogma
Methods in eu.bandm.tools.ramus.ogma that return InputModifier and TypeMethodDescriptionInput.consume()Returns a new input that is advanced by one token.Output.getNext()Returns the next input state of this output.static <D,T> Input <D, T> Returns a parser input state lazily backed by a generator.Methods in eu.bandm.tools.ramus.ogma that return types with arguments of type InputModifier and TypeMethodDescriptionParser.apply(Input<D, T> in, Action.Success<?, SimpleMessage<D>, Input<D, T>> recyclable) Applies this continuation, possibly using a recyclable leaf node.static <D,T> Action <Output<D, T>, SimpleMessage<D>, Input<D, T>> ParserFactory.diagnoseUnexpectedToken(Action<Output<D, T>, SimpleMessage<D>, Input<D, T>> body, @Opt Location<D> location, @Opt String description) Extends a search tree with an error message regarding an unexpected token.SortedSet<Reading.Item<D, Input<D, T>>> Reading.Result.getSyntacticObstructions()Deprecated, for removal: This API element is subject to removal in a future version.Returns the set of input states rejected as obstructions.Methods in eu.bandm.tools.ramus.ogma with parameters of type InputModifier and TypeMethodDescriptionParser.apply(Input<D, T> in, Action.Success<?, SimpleMessage<D>, Input<D, T>> recyclable) Applies this continuation, possibly using a recyclable leaf node.default intCompare two inputs for temporal order.Parser.process(Input<D, T> input, Action.Visitor<Output<D, T>, SimpleMessage<D>, Input<D, T>> errorVisitor) Processes an input stream with this parser and the default initial semantic state.Parser.process(Input<D, T> input, Action.Visitor<Output<D, T>, SimpleMessage<D>, Input<D, T>> errorVisitor, State initialState) Processes an input stream with this parser and a given initial semantic state.Parses the given input with this reading and returns a complete summary of interpretations.Returns a variant of this output with the given next input state.Method parameters in eu.bandm.tools.ramus.ogma with type arguments of type InputModifier and TypeMethodDescriptionParser.apply(Input<D, T> in, Action.Success<?, SimpleMessage<D>, Input<D, T>> recyclable) Applies this continuation, possibly using a recyclable leaf node.Add diagnostic messages to the behavior of this 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> Action <Output<D, T>, SimpleMessage<D>, Input<D, T>> ParserFactory.diagnoseUnexpectedToken(Action<Output<D, T>, SimpleMessage<D>, Input<D, T>> body, @Opt Location<D> location, @Opt String description) Extends a search tree with an error message regarding an unexpected token.Parser.process(Input<D, T> input, Action.Visitor<Output<D, T>, SimpleMessage<D>, Input<D, T>> errorVisitor) Processes an input stream with this parser and the default initial semantic state.Parser.process(Input<D, T> input, Action.Visitor<Output<D, T>, SimpleMessage<D>, Input<D, T>> errorVisitor, State initialState) Processes an input stream with this parser and a given initial semantic state.static <D,T> Parser <D, T> Parser.sideEffect(Consumer<Input<D, T>> effect) Deprecated.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.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.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.Constructors in eu.bandm.tools.ramus.ogma with parameters of type Input
ParserFactory.sideEffect(Consumer)instead.