add a lex tool and update defination file

1. add lex tool which will generate .lex base on defination files
2. update defination files and their reader features