Uses of Class
eu.bandm.tools.ramus.runtime2.Reading
-
Uses of Reading in eu.bandm.tools.ramus.runtime2
Modifier and TypeMethodDescriptionstatic <D,
T, A> Reading<D, T, A> Retrieve the value assigned to a given key as the semantic interpretation.Reading.andThenCombining
(Reading<D, T, B> other, BiFunction<? super A, ? super B, ? extends C> pair) Match the syntax of this expression followed by that of another, combining the semantic interpretations with a function.Match the syntax of this expression followed by that of another, combining the semantic interpretations.Match the syntax of this token with a suffix, with the same semantic interpretation.Match the syntax of this token with a suffix, with the same semantic interpretation.Match the syntax of this token with a suffix, with the same semantic interpretation.Match the same syntax as this expression, and assign the semantic interpretation to a given key.static <D,
T, A> Reading<D, T, A> static <D,
T, A> Reading<D, T, A> Match the given syntax with a constant semantic interpretation.static <D,
T, A> Reading<D, T, A> Reading.constant
(T type, A value) Match the given syntax with a constant semantic interpretation.static <D,
T, A> Reading<D, T, A> Match the given syntax with a constant semantic interpretation.static <D,
T, A> Reading<D, T, A> Reading.constantEpsilon
(A value) Match no input with a constant semantic interpretation.Reading.content
(T... types) Match a token of any of the given token types and interpret as its content.static <D,
T, A> Reading<D, T, A> Reading.counit
(A value) static <D,
T, A> Reading<D, T, A> Make a recursive expression.static <D,
T, A> Reading<D, T, A> Reading.ifThenElse
(T type, Reading<D, T, ? extends A> thenBranch, Reading<D, T, ? extends A> elseBranch) Choose between two expression depending on the type of the next token.static <D,
T, A> Reading<D, T, A> Reading.leftAssoc
(Reading.OperatorFactory<D, T, A> operator, Reading<D, T, A> operand, T... operatorTypes) Tactic for left-associative operators.static <D,
T, A> Reading<D, T, A> Reading.leftAssoc
(Reading<D, T, A> headOperand, Reading.OperatorFactory<D, T, A> operator, Reading<D, T, A> tailOperand, T... operatorTypes) static <D,
T, A> Reading<D, T, A> static <D,
T, A> Reading<D, T, A> static <D,
T, A> Reading<D, T, A> Match the same syntax as this expression, and apply a function to the result of semantic interpretation.Match the syntax of this expression followed by that of another, combining the semantic interpretations as aMap.Entry
.static <D,
T, A> Reading<D, T, A> Reading.nonAssoc
(Reading.OperatorFactory<D, T, A> operator, Reading<D, T, A> operand, T... operatorTypes) Tactic for non-associative operators.Reading.optional
(Parser.Pragma... pragmas) Match the syntax of this token with the same interpretation, or otherwise match no input.Match the syntax of this token with the same interpretation, or otherwise match no input.Reading.orElse
(A defaultValue, Parser.Pragma... pragmas) Match the syntax of this token with the same interpretation, or otherwise match no input with the given default interpretation.Reading.orElseGet
(Supplier<? extends A> defaultValue, Parser.Pragma... pragmas) Match the syntax of this token with the same interpretation, or otherwise match no input with the given default interpretation.Reading.plus
(Parser.Pragma... pragmas) Match one or more repetitions of this expression.Reading.plus
(Parser<D, T> sep, Parser.Pragma... pragmas) Match one or more repetitions of this expression with intervening separator syntax.Reading.plus
(T sep, Parser.Pragma... pragmas) Match one or more repetitions of this expression with intervening separator syntax.Match the syntax of this token with a prefix, with the same semantic interpretation.Match the syntax of this token with a prefix, with the same semantic interpretation.Match the syntax of this token with a prefix, with the same semantic interpretation.static <D,
T, A1, R> Reading<D, T, R> Reducer.reduce
(@Opt Class<R> type, Reducer.Constructor1<D, A1, ? extends R> cons, Reading<D, T, ? extends A1> arg1) static <D,
T, A1, A2, R>
Reading<D,T, R> Reducer.reduce
(@Opt Class<R> type, Reducer.Constructor2<D, A1, A2, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2) static <D,
T, A1, A2, A3, R>
Reading<D,T, R> Reducer.reduce
(@Opt Class<R> type, Reducer.Constructor3<D, A1, A2, A3, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2, Reading<D, T, ? extends A3> arg3) static <D,
T, A1, A2, A3, A4, R>
Reading<D,T, R> Reducer.reduce
(@Opt Class<R> type, Reducer.Constructor4<D, A1, A2, A3, A4, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2, Reading<D, T, ? extends A3> arg3, Reading<D, T, ? extends A4> arg4) static <D,
T, A1, R> Reading<D, T, R> Reducer.reduce
(Reducer.Constructor1<D, A1, ? extends R> cons, Reading<D, T, ? extends A1> arg1) static <D,
T, A1, A2, R>
Reading<D,T, R> Reducer.reduce
(Reducer.Constructor2<D, A1, A2, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2) static <D,
T, A1, A2, A3, R>
Reading<D,T, R> Reducer.reduce
(Reducer.Constructor3<D, A1, A2, A3, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2, Reading<D, T, ? extends A3> arg3) static <D,
T, A1, A2, A3, A4, R>
Reading<D,T, R> Reducer.reduce
(Reducer.Constructor4<D, A1, A2, A3, A4, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2, Reading<D, T, ? extends A3> arg3, Reading<D, T, ? extends A4> arg4) static <D,
T, A> Reading<D, T, A> Reading.rightAssoc
(Reading.OperatorFactory<D, T, A> operator, Reading<D, T, A> operand, T... operatorTypes) Tactic for right-associative operators.Reading.star
(Parser.Pragma... pragmas) Match zero or more repetitions of this expression.Reading.star
(Parser<D, T> sep, Parser.Pragma... pragmas) Match zero or more repetitions of this expression with intervening separator syntax.Reading.star
(T sep, Parser.Pragma... pragmas) Match zero or more repetitions of this expression with intervening separator syntax.Reading.text
(T... types) Match a token of any of the given token types and interpret as its text.static <D,
T> Reading<D, T, T> Reading.type
(T... types) Match a token of any of the given token types and interpret as its type.Reading.unit()
Match no input with no semantic interpretation.Match the given syntax with no semantic interpretation.Reading.unit
(T... types) Match the given syntax with no semantic interpretation.Reading.withOtherTokenSource
(LookaheadTokenMultiplexer<K, D, T, L> multi, K newKey) Match the same syntax as this expression, but perform semantic interpretation in a local scope.Match the syntax of this token with a prefix and a suffix, with the same semantic interpretation.Match the syntax of this token with a prefix and a suffix, with the same semantic interpretation.Modifier and TypeMethodDescriptionReading.andThenCombining
(Reading<D, T, B> other, BiFunction<? super A, ? super B, ? extends C> pair) Match the syntax of this expression followed by that of another, combining the semantic interpretations with a function.Match the syntax of this expression followed by that of another, combining the semantic interpretations.static <D,
T, A> Reading<D, T, A> static <D,
T, A> Reading<D, T, A> Reading.ifThenElse
(T type, Reading<D, T, ? extends A> thenBranch, Reading<D, T, ? extends A> elseBranch) Choose between two expression depending on the type of the next token.static <D,
T, A> Reading<D, T, A> Reading.leftAssoc
(Reading.OperatorFactory<D, T, A> operator, Reading<D, T, A> operand, T... operatorTypes) Tactic for left-associative operators.static <D,
T, A> Reading<D, T, A> Reading.leftAssoc
(Reading<D, T, A> headOperand, Reading.OperatorFactory<D, T, A> operator, Reading<D, T, A> tailOperand, T... operatorTypes) Match the syntax of this expression followed by that of another, combining the semantic interpretations as aMap.Entry
.static <D,
T, A> Reading<D, T, A> Reading.nonAssoc
(Reading.OperatorFactory<D, T, A> operator, Reading<D, T, A> operand, T... operatorTypes) Tactic for non-associative operators.static <D,
T, A1, R> Reading<D, T, R> Reducer.reduce
(@Opt Class<R> type, Reducer.Constructor1<D, A1, ? extends R> cons, Reading<D, T, ? extends A1> arg1) static <D,
T, A1, A2, R>
Reading<D,T, R> Reducer.reduce
(@Opt Class<R> type, Reducer.Constructor2<D, A1, A2, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2) static <D,
T, A1, A2, A3, R>
Reading<D,T, R> Reducer.reduce
(@Opt Class<R> type, Reducer.Constructor3<D, A1, A2, A3, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2, Reading<D, T, ? extends A3> arg3) static <D,
T, A1, A2, A3, A4, R>
Reading<D,T, R> Reducer.reduce
(@Opt Class<R> type, Reducer.Constructor4<D, A1, A2, A3, A4, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2, Reading<D, T, ? extends A3> arg3, Reading<D, T, ? extends A4> arg4) static <D,
T, A1, R> Reading<D, T, R> Reducer.reduce
(Reducer.Constructor1<D, A1, ? extends R> cons, Reading<D, T, ? extends A1> arg1) static <D,
T, A1, A2, R>
Reading<D,T, R> Reducer.reduce
(Reducer.Constructor2<D, A1, A2, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2) static <D,
T, A1, A2, A3, R>
Reading<D,T, R> Reducer.reduce
(Reducer.Constructor3<D, A1, A2, A3, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2, Reading<D, T, ? extends A3> arg3) static <D,
T, A1, A2, A3, A4, R>
Reading<D,T, R> Reducer.reduce
(Reducer.Constructor4<D, A1, A2, A3, A4, R> cons, Reading<D, T, ? extends A1> arg1, Reading<D, T, ? extends A2> arg2, Reading<D, T, ? extends A3> arg3, Reading<D, T, ? extends A4> arg4) static <D,
T, A> Reading<D, T, A> Reading.rightAssoc
(Reading.OperatorFactory<D, T, A> operator, Reading<D, T, A> operand, T... operatorTypes) Tactic for right-associative operators.