add astfactory.do some parser helper function. default use antlr-3.4 to avoid C target bug.