Package eu.bandm.tools.ramus.runtime2
Class Expression<D,T,A>
java.lang.Object
eu.bandm.tools.ramus.runtime2.AbstractExpression<D,T,A>
eu.bandm.tools.ramus.runtime2.Expression<D,T,A>
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <D,
T, A> Expression<D, T, A> <B,
C> Expression<D, T, C> andThenCombining
(Expression<D, T, B> other, BiFunction<? super A, ? super B, ? extends C> pair) <B> Expression<D,
T, B> andThenDependent
(Expression<D, T, Function<? super A, ? extends B>> other) Expression<D,
T, A> Expression<D,
T, A> final Expression<D,
T, A> Expression<D,
T, A> static <D,
T, A> Expression<D, T, A> choice
(Expression<D, T, ? extends A>... alts) static <D,
T, A> Expression<D, T, A> static <D,
T, A> Expression<D, T, A> constant
(T type, A value) static <D,
T, A> Expression<D, T, A> static <D,
T, A> Expression<D, T, A> constantEpsilon
(A value) static <D,
T> Expression<D, T, Content<D, T>> static <D,
T> Expression<D, T, Content<D, T>> content
(T... types) static <D,
T, A> Expression<D, T, A> counit
(A value) static <D,
T, A> Expression<D, T, A> fix
(Function<Expression<D, T, A>, Expression<D, T, A>> loop) Expression<D,
T, A> static <D,
T, A> Expression<D, T, A> ifThenElse
(T type, Expression<D, T, ? extends A> thenBranch, Expression<D, T, ? extends A> elseBranch) static <D,
T, A> Expression<D, T, A> lookahead
(Map<T, Expression<D, T, ? extends A>> map) static <D,
T, A> Expression<D, T, A> static <D,
T, A> Expression<D, T, A> <B> Expression<D,
T, B> <B> Expression<D,
T, Map.Entry<A, B>> mapsTo
(Expression<D, T, B> other) Expression<D,
T, A> Expression<D,
T, Optional<A>> optional
(Parser.Pragma... pragmas) Expression<D,
T, Optional<A>> Expression<D,
T, A> orElse
(A defaultValue, Parser.Pragma... pragmas) Expression<D,
T, A> orElse
(Expression<D, T, A> other) Expression<D,
T, A> orElseGet
(Supplier<? extends A> defaultValue, Parser.Pragma... pragmas) Expression<D,
T, List<A>> plus
(Parser.Pragma... pragmas) Expression<D,
T, List<A>> plus
(Parser<D, T> sep, Parser.Pragma... pragmas) Expression<D,
T, List<A>> plus
(T sep, Parser.Pragma... pragmas) Expression<D,
T, A> Expression<D,
T, A> final Expression<D,
T, A> process
(Parser.Input<D, T> in) process
(Supplier<? extends Parser.Token<D, T>> in) Expression<D,
T, List<A>> star
(Parser.Pragma... pragmas) Expression<D,
T, List<A>> star
(Parser<D, T> sep, Parser.Pragma... pragmas) Expression<D,
T, List<A>> star
(T sep, Parser.Pragma... pragmas) toString()
static <D,
T> Expression<D, T, T> type
(T... types) static <D,
T> Expression<D, T, Void> unit()
static <D,
T> Expression<D, T, Void> static <D,
T> Expression<D, T, Void> unit
(T... types) Expression<D,
T, A> Expression<D,
T, A> Expression<D,
T, A> Methods inherited from class eu.bandm.tools.ramus.runtime2.AbstractExpression
assign, assign, getProjection, getSemantics, getSyntax
-
Constructor Details
-
Expression
-
-
Method Details
-
toString
-
content
-
content
-
type
-
map
-
prepend
-
prepend
-
append
-
append
-
prepend
-
append
-
wrap
-
wrap
-
orElse
-
orElseGet
-
optional
-
optional
-
star
-
star
-
star
-
plus
-
plus
-
plus
-
constant
-
constant
-
constant
-
constantEpsilon
-
choice
-
orElse
-
lookup
-
lookup
-
lookahead
-
andThenCombining
public <B,C> Expression<D,T, andThenCombiningC> (Expression<D, T, B> other, BiFunction<? super A, ? super B, ? extends C> pair) -
mapsTo
-
andThenDependent
public <B> Expression<D,T, andThenDependentB> (Expression<D, T, Function<? super A, ? extends B>> other) -
fix
-
unit
-
unit
-
unit
-
counit
-
ifThenElse
public static <D,T, Expression<D,A> T, ifThenElseA> (T type, Expression<D, T, ? extends A> thenBranch, Expression<D, T, ? extends A> elseBranch) -
access
-
assigning
-
mapSyntax
-
withScope
-
guard
-
process
-
process
-