blob: f5cacb4fd503c80fb445c8ea146e43b7ff66114b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.prelude.semantics.rule;
/**
* A production rule which <i>adds</i> the production to the matched query
*
* @author bratseth
*/
public class AddingProductionRule extends ProductionRule {
protected String getSymbol() { return "+>"; }
public void setProduction(ProductionList productionList) {
super.setProduction(productionList);
productionList.setReplacing(false);
}
}
|