Package eu.bandm.tools.ramus.ogma
Interface ReducerFactory.Constructor3<D,A1,A2,A3,R>
- Type Parameters:
D- the type of source document identifiersA1- the type of the first parsed argument valueA2- the type of the second parsed argument valueA3- the type of the third parsed argument valueR- the type of resulting AST nodes
- All Superinterfaces:
ReducerFactory.Constructor
- Enclosing class:
ReducerFactory
public static interface ReducerFactory.Constructor3<D,A1,A2,A3,R>
extends ReducerFactory.Constructor
Functional interface for AST node constructors with three parsed arguments.
-
Method Details
-
parse
default <T> Parser<D,T> 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.- Type Parameters:
T- the type of token types- Parameters:
arg1- the first argument fragmentarg2- the second argument fragmentarg3- the third argument fragment- Returns:
- the effective parser for the argument fragments
-
apply
Creates a new AST node with three parsed arguments.- Parameters:
context- the context of reductionval1- the first parsed argument valueval2- the second parsed argument valueval3- the third parsed argument value- Returns:
- a new AST node
- Throws:
ReducerFactory.Abort- if a semantic error has been detected
-