private Term parseTerm()
{
Token t = lookAhead(1);
int tokenType = t.getType();
if (tokenType == (int)LogicTokenTypes.CONSTANT)
{
return parseConstant();
}
else if (tokenType == (int)LogicTokenTypes.VARIABLE)
{
return parseVariable();
}
else if (tokenType == (int)LogicTokenTypes.FUNCTION)
{
return parseFunction();
}
else
{
return null;
}
}