Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can you create Perl 6 REPL plugins?

Perl 6 comes with a REPL; and that REPL picks up plugins such as Linenoise as soon as it's installed, getting all the goodies. However, it's not clear to me how Linenoise plugs into the REPL to provide that functionality. I haven't seen it documented anywhere, either. If I want to create my own plugin for providing, let's say, other type of tab completion (which Linenoise already has, but far as I can tell, only for keywords), or anything else for that matter, how could I proceed? Is there any particular part of Linenoise I could fork for doing that? This would help, for instance, towards providing a better REPL, as the community has requested for some time already.

like image 729
jjmerelo Avatar asked Aug 21 '18 11:08

jjmerelo


1 Answers

You currently cannot, at least not without patching Raku. It's hard-coded in Raku's source code.

like image 196
moritz Avatar answered Nov 03 '22 19:11

moritz