v4.13
[language-befunge.git] / bin / jqbef98
blob8d20c933cd5f9f71bf8bbede6bc3e4cbe3fc142c
1 #!/usr/bin/perl
3 # This file is part of Language::Befunge.
4 # Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the same terms as Perl itself.
11 use strict;
12 use warnings;
14 use FindBin qw{ $Bin };
15 use lib "$Bin/../lib";
17 use Language::Befunge;
18 use Language::Befunge::Debug;
19 use Getopt::Long;
21 my %opts;
22 Getopt::Long::Configure('no_auto_abbrev', 'bundling', 'ignore_case', 'no_pass_through');
23 GetOptions( \%opts, "verbose|v") or die;
24 my $bef = Language::Befunge->new( {file=>shift} );
25 Language::Befunge::Debug::enable() if $opts{verbose};
26 exit $bef->run_code( @ARGV );
28 __END__
30 =head1 NAME
32 jqbef98 - a Befunge-98 interpreter
36 =head1 SYNOPSIS
38 jqbef98 [-v] program.bef
42 =head1 DESCRIPTION
44 This is a full featured Concurrent Befunge-98 interpreter.
45 Just provide the name of the Befunge script, and there you go!
49 =head1 SEE ALSO
51 L<Language::Befunge>.
55 =head1 AUTHOR
57 Jerome Quelin, E<lt>jquelin@cpan.orgE<gt>
61 =head1 COPYRIGHT & LICENSE
63 Copyright (c) 2001-2009 Jerome Quelin, all rights reserved.
65 This program is free software; you can redistribute it and/or modify
66 it under the same terms as Perl itself.
69 =cut