Basic parser and analyser framework.