net.sourceforge.nrl.parser.model
Class VariableContext
java.lang.Object
net.sourceforge.nrl.parser.model.VariableContext
public class VariableContext
- extends Object
An implementation of a stack-based variable context that is used throughout
the parser for processing model references.
The variable context consists of a number of "frames":
- Additional frames required for block-type statements like "if". The
frames can be pushed and popped as necessary.
VariableContext
public VariableContext()
bindToCurrentFrame
public void bindToCurrentFrame(IVariable var)
isAlreadyDeclared
public boolean isAlreadyDeclared(String varName)
lookup
public IVariable lookup(String name)
pushFrame
public void pushFrame()
popFrame
public void popFrame()
Copyright © 2006-2010 Christian Nentwich and others