ENH: add eval method and tests for local syntax