using warnings
[language-befunge.git] / bin / jqbf98
blob1197244f5e76257b1f2c1ec2fd823078b9165c21
1 #!/usr/bin/perl
3 # This file is part of Language::Befunge.
4 # Copyright (c) 2001-2008 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 Language::Befunge;
15 use Getopt::Long;
17 =head1 NAME
19 jqbf98.pl - a Befunge-98 interpreter.
22 =head1 SYNOPSIS
24 jqbf98 [-v] program.bf
27 =head1 DESCRIPTION
29 This is a full featured Concurrent Befunge-98 interpreter.
30 Just provide the name of the Befunge script, and there you go!
32 =cut
34 my %opts;
35 Getopt::Long::Configure('no_auto_abbrev', 'bundling', 'ignore_case', 'no_pass_through');
36 GetOptions( \%opts, "verbose|v") or die;
37 my $bef = Language::Befunge->new( {file=>shift} );
38 $bef->set_DEBUG( $opts{verbose} );
39 exit $bef->run_code( @ARGV );
41 __END__
43 =head1 SEE ALSO
45 =over 4
47 =item L<perl>
49 =item L<Language::Befunge>
51 =back
54 =head1 AUTHOR
56 Jerome Quelin, E<lt>jquelin@cpan.orgE<gt>
59 =head1 COPYRIGHT & LICENSE
61 Copyright (c) 2001-2008 Jerome Quelin, all rights reserved.
63 This program is free software; you can redistribute it and/or modify
64 it under the same terms as Perl itself.
68 =cut