Implement Expression.parse in C