Prolog can be used for parsing context