org.yuanheng.cookcc.parser.ast.InternalSymbol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cookcc Show documentation
Show all versions of cookcc Show documentation
CookCC - a Lexer / Parser (LALR(1)) Project
package org.yuanheng.cookcc.parser.ast;
/**
* @author Heng Yuan
*/
public abstract class InternalSymbol extends AbstractSymbol
{
private final Symbol m_symbol;
public InternalSymbol (Symbol symbol)
{
super (symbol.getName ());
m_symbol = symbol;
}
Symbol getSymbol ()
{
return m_symbol;
}
@Override
public int getValue (SymbolLibrary library, long lineNumber)
{
return m_symbol.getValue (library, lineNumber);
}
@Override
public boolean isInternal ()
{
return true;
}
}