Alachisoft.NCache.Parser.LRAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-parser Show documentation
Show all versions of nc-parser Show documentation
Internal package of Alachisoft.
package Alachisoft.NCache.Parser;
// C# Translation of GoldParser, by Marcus Klimstra .
// Based on GOLDParser by Devin Cook .
/**
* This class represents an action in a LALR State.
* There is one and only one action for any given symbol.
*/
public class LRAction {
private Symbol m_symbol;
private Action m_action = getAction().values()[0];
private int m_value;
/* properties */
public final Symbol getSymbol() {
return m_symbol;
}
public final void setSymbol(Symbol value) {
m_symbol = value;
}
public final Action getAction() {
return m_action;
}
public final void setAction(Action value) {
m_action = value;
}
public final int getValue() {
return m_value;
}
public final void setValue(int value) {
m_value = value;
}
/* public methods */
@Override
public String toString() {
return "LALR action [symbol=" + m_symbol + ",action=" + m_action + ",value=" + m_value + "]";
}
}