Add grammar parser

Not ready yet.