Custom grammar parser/evaluator for calling functions and looking up variables within an environment