Package eu.bandm.tools.ramus.ogma
Interface ReducerFactory.Constructor2<D,A1,A2,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 valueR- the type of resulting AST nodes
- All Superinterfaces:
ReducerFactory.Constructor
- Enclosing class:
ReducerFactory
Functional interface for AST node constructors with two parsed arguments.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new AST node with two parsed arguments.Returns the effective parser for the argument fragments.
-
Method Details
-
parse
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 fragment- Returns:
- the effective parser for the argument fragments
-
apply
Creates a new AST node with two parsed arguments.- Parameters:
context- the context of reductionval1- the first parsed argument valueval2- the second parsed argument value- Returns:
- a new AST node
- Throws:
ReducerFactory.Abort- if a semantic error has been detected
-