added first and follow sets to query parser

- improved error recovery
- initial support for code completion hints