Support for suggest next token
michahirsch opened this issue · 0 comments
Hi,
I'm currently working to have a user autocompletion feature for a RSQL syntax query.
I've seen that the information about the next possible tokens and the information about the current cursor position of the syntax error is within the ParseException
class but is not accessible due the ParseException
is not exposing this information.
I guess it would be nice to have a general autocompletion feature in the RSQL parser, wouldn't be? Like I could also get suggestion based on a current cursor position?
The only option I currently see is to use reflection to retrieve the information from the ParseException
and based on the currentToken
and nextToken
information provide suggestions or to implement an own grammar e.g. in ANTLR.
Cheers,
Michael