further implementation of syntax parser