Parse constant and variable expression