A parser for ctpl template language