antlr4-c3
antlr4-c3 copied to clipboard
No way to get starting candidates on empty input
Without suppling input I would like to get valid candidates for completion. The current way with parser.collectCandidates(tokenIndex)
requires that there be a token index which doesn't exist for the empty string.
Can't you pass -1 as the token index?
-1 will not work, but 0 should. There's always at least one token in the token stream (EOF).