instaparse

If you're not trampolining your parser, why bother getting up in the morning?
2021-02-02T05:57:29.000700Z

Hello

2021-02-02T05:58:40.002100Z

Was there any attempt to use Instaparse to propose auto-completion at the end of a string which is only matching the beginning side of a grammar? Does Instaparse have any support for this kind of use case?

2021-02-02T06:05:30.006Z

For example, assuming that we have the grammar:

my-grammar = 'he' | 'helsinky' | 'hello'
and we have the string "he", that matches the grammar already. It would be nice if Instaparse could say that the next characters for a grammar match could also be "lsinky" or "llo" .

2021-02-02T06:07:07.006700Z

I am using Instaparse heavily in the project https://github.com/green-coder/girouette

2021-02-02T06:25:05.009400Z

Maybe a new "suggestion" mode could be added in Instaparse, where the resulting parse tree could contain some special nodes where we could query some suggestions of letter insertion.