2024-12-30 11:08:48 +00:00
|
|
|
#!/usr/bin/env raku
|
|
|
|
use v6.d;
|
|
|
|
use IUtils::IDEMode;
|
2024-12-30 13:32:52 +00:00
|
|
|
|
|
|
|
my $ide = IUtils::IDEMode::IDEMode.new();
|
|
|
|
# my @res = $ide.browse-namespace: 'Data.List';
|
|
|
|
# say @res;
|
|
|
|
|
|
|
|
my @res = $ide.version;
|
|
|
|
say @res[0][1][1][1][0];
|
|
|
|
|
|
|
|
@res = $ide.load-file: '.tmp/test.idr';
|
|
|
|
say @res.raku;
|
|
|
|
|
|
|
|
@res = $ide.interpret: ':exec works >>= print';
|
|
|
|
say @res.raku;
|
|
|
|
say $ide.read-sexp();
|
|
|
|
|
|
|
|
@res = $ide.interpret: ':exec fails';
|
|
|
|
say @res.raku;
|