Make parser include text surrounding content classes.
Make parser handle unclosed content classes.
Create lexer.