line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# |
2
|
|
|
|
|
|
|
# This file is part of Language-Befunge |
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# This software is copyright (c) 2003 by Jerome Quelin. |
5
|
|
|
|
|
|
|
# |
6
|
|
|
|
|
|
|
# This is free software; you can redistribute it and/or modify it under |
7
|
|
|
|
|
|
|
# the same terms as the Perl 5 programming language system itself. |
8
|
|
|
|
|
|
|
# |
9
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
10
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
122
|
|
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
package Language::Befunge::lib::HELO; |
13
|
|
|
|
|
|
|
# ABSTRACT: extension to print Hello world! |
14
|
|
|
|
|
|
|
$Language::Befunge::lib::HELO::VERSION = '5.000'; |
15
|
6
|
|
|
6
|
1
|
12
|
sub new { return bless {}, shift; } |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub P { |
18
|
2
|
|
|
2
|
1
|
67
|
print "Hello world!\n"; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub S { |
22
|
2
|
|
|
2
|
1
|
4
|
my (undef, $interp) = @_; |
23
|
2
|
|
|
|
|
10
|
$interp->get_curip->spush( reverse map { ord } split //, "Hello world!\n".chr(0) ); |
|
28
|
|
|
|
|
26
|
|
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |