add new function, can read configure, support  grammar, becide, add the UnitTest for it: