Working Parser and Scanner for variables