equal
deleted
inserted
replaced
1 #!/usr/bin/perl |
1 #!/usr/bin/perl |
2 |
2 |
3 # Copyright (c) 2006 Joe Hurd, distributed under the BSD License |
3 # Copyright (c) 2006 Joe Leslie-Hurd, distributed under the BSD License |
4 |
4 |
5 use strict; |
5 use strict; |
6 use warnings; |
6 use warnings; |
7 use Pod::Usage; |
7 use Pod::Usage; |
8 use Getopt::Std; |
8 use Getopt::Std; |
70 sub print_normal { |
70 sub print_normal { |
71 (scalar @_ == 1) or die; |
71 (scalar @_ == 1) or die; |
72 my $text = shift @_; |
72 my $text = shift @_; |
73 |
73 |
74 if ($opt_c eq "mosml") { |
74 if ($opt_c eq "mosml") { |
75 $text =~ s/Array\.copy/Array_copy/g; |
75 $text =~ s/Real\.isFinite/Real_isFinite/g; |
76 $text =~ s/Array\.foldli/Array_foldli/g; |
|
77 $text =~ s/Array\.foldri/Array_foldri/g; |
|
78 $text =~ s/Array\.modifyi/Array_modifyi/g; |
|
79 $text =~ s/OS\.Process\.isSuccess/OS_Process_isSuccess/g; |
|
80 $text =~ s/PP\.ppstream/ppstream/g; |
|
81 $text =~ s/String\.concatWith/String_concatWith/g; |
|
82 $text =~ s/String\.isSubstring/String_isSubstring/g; |
|
83 $text =~ s/String\.isSuffix/String_isSuffix/g; |
|
84 $text =~ s/Substring\.full/Substring_full/g; |
|
85 $text =~ s/TextIO\.inputLine/TextIO_inputLine/g; |
|
86 $text =~ s/Vector\.foldli/Vector_foldli/g; |
|
87 $text =~ s/Vector\.mapi/Vector_mapi/g; |
|
88 } |
76 } |
89 |
77 |
90 print STDOUT $text; |
78 print STDOUT $text; |
91 } |
79 } |
92 |
80 |
298 |
286 |
299 Waiting to rear their ugly heads. |
287 Waiting to rear their ugly heads. |
300 |
288 |
301 =head1 AUTHORS |
289 =head1 AUTHORS |
302 |
290 |
303 Joe Hurd <joe@gilith.com> |
291 Joe Leslie-Hurd <joe@gilith.com> |
304 |
292 |
305 =head1 SEE ALSO |
293 =head1 SEE ALSO |
306 |
294 |
307 Perl(1). |
295 Perl(1). |
308 |
296 |