working on stg parser