iutils-raku/bin/iutils

21 lines
400 B
Raku
Executable file

#!/usr/bin/env raku
use v6.d;
use IUtils::IDEMode;
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;