add test grammar
add related source code