-2
シンボルテーブルのメカニズムについては、コード例で詳しく説明できますか?コンパイラデザインでシンボルテーブルを作成するには?
シンボルテーブルのメカニズムについては、コード例で詳しく説明できますか?コンパイラデザインでシンボルテーブルを作成するには?
interface ISymbol
{
// some abstract symbol interface. i wont fill it in here but you probably
// do want to use an interface since nodes cannot be subclassed off
// a node base class and a symbol base class at the same time, etc.
}
// and then you do this
HashMap<String,ISymbol> symbolTable = new HashMap<String,ISymbol>();