work on stg parsing