Import libtu instead of using submodules
[notion/jeffpc.git] / utils / repl.pl
blob890959865e12c3756509910ea58fc0913868d87e
1 #!/usr/bin/perl
3 use strict;
5 print "lua> ";
7 while (my $command = <STDIN>) {
8 if ($command =~ /^\s*([a-zA-Z_0-9]+)\s*=(.*)/) {
9 $command = "$command; return $1;";
10 } elsif ($command =~ /return/) {
11 $command = $command;
12 } else {
13 $command = "return $command";
15 print `notionflux -e "$command"`;
16 print "lua> ";