improve parse-dependencies

use simple lexical analysis instead of Regular expression matching