#!/usr/bin/perl -w # # This file is part of Language::Befunge. # Copyright (c) 2001-2008 Jerome Quelin, all rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the same terms as Perl itself. # # use strict; use Language::Befunge; use Getopt::Long; =head1 NAME jqbf98.pl - a Befunge-98 interpreter. =head1 SYNOPSIS jqbf98 [-v] program.bf =head1 DESCRIPTION This is a full featured Concurrent Befunge-98 interpreter. Just provide the name of the Befunge script, and there you go! =cut my %opts; Getopt::Long::Configure('no_auto_abbrev', 'bundling', 'ignore_case', 'no_pass_through'); GetOptions( \%opts, "verbose|v") or die; my $bef = Language::Befunge->new( {file=>shift} ); $bef->set_DEBUG( $opts{verbose} ); exit $bef->run_code( @ARGV ); __END__ =head1 SEE ALSO =over 4 =item L =item L =back =head1 AUTHOR Jerome Quelin, Ejquelin@cpan.orgE =head1 COPYRIGHT & LICENSE Copyright (c) 2001-2008 Jerome Quelin, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut