Parser for restricted language, see META 2012 paper