You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm implementing variable/module keyword hinting and completion in the gobba REPL.
A problem may emerge (as it just did) when completion keywords have sub-keywords that depend on data structures external to linenoise/ocamline and previous sections/words in the current line. Parsing and evaluating the whole line at every keystroke is not preferable.
See 0x0f0f0f/gobba#17. Adding a function similar to the gobba keyword lookup function (currently broken) to ocamline and generalizing it for lists of strings (and adding a recursion capable keyword-finding callback as an Ocamline.read argument) would be time saving for future projects using ocamline that may try to implement the same functionality.
The text was updated successfully, but these errors were encountered:
0x0f0f0f
changed the title
Should a list of keywords be passed to ocamline such that they are completed if at the end of the line?
Should a list of keywords be passed to ocamline such that they are hinted and completed if at the end of the line?
Jan 19, 2020
I think this should be able to be handled by the hint and completion callbacks? I might not fully understand. Can you see the example I posted here: https://github.com/chrisnevers/peacock and let me know if that addresses your problem.
I've managed to implement a trie tree of chars in gobba. It generates completions and hints from a list of strings (the keywords in the language). Tell me if you want to get this into ocamline so that users may only have to pass a list of the keywords as an Ocamline.read argument.
Also, could you please release the new version with linenoise? I'm eager to release completion in gobba. Thank you for you work as usual!
I'm implementing variable/module keyword hinting and completion in the gobba REPL.
A problem may emerge (as it just did) when completion keywords have sub-keywords that depend on data structures external to linenoise/ocamline and previous sections/words in the current line. Parsing and evaluating the whole line at every keystroke is not preferable.
See 0x0f0f0f/gobba#17. Adding a function similar to the gobba keyword lookup function (currently broken) to ocamline and generalizing it for lists of strings (and adding a recursion capable keyword-finding callback as an Ocamline.read argument) would be time saving for future projects using ocamline that may try to implement the same functionality.
The text was updated successfully, but these errors were encountered: