|
Packit Service |
c5cf8c |
#! /usr/bin/env perl
|
|
Packit Service |
c5cf8c |
#
|
|
Packit Service |
c5cf8c |
require "./maint/parse.sub";
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
$debug = 1;
|
|
Packit Service |
c5cf8c |
while (<>) {
|
|
Packit Service |
c5cf8c |
print "Input line $_" if $debug;
|
|
Packit Service |
c5cf8c |
$remainder = StripComments( STDIN, $_ );
|
|
Packit Service |
c5cf8c |
$remainder =~ s/[\r]*\n//;
|
|
Packit Service |
c5cf8c |
while ($remainder ne "") {
|
|
Packit Service |
c5cf8c |
($leader, $bal,$remainder) = &GetBalancedParen( STDIN, $remainder );
|
|
Packit Service |
c5cf8c |
print "Leader is $leader\n";
|
|
Packit Service |
c5cf8c |
print "Paren string is $bal\n";
|
|
Packit Service |
c5cf8c |
print "Remainder is $remainder\n";
|
|
Packit Service |
c5cf8c |
if ($bal ne "") {
|
|
Packit Service |
c5cf8c |
($leader, $remainder, @args) = &GetSubArgs( STDIN, $bal );
|
|
Packit Service |
c5cf8c |
print "Number of args is 1+$#args\n" if $debug;
|
|
Packit Service |
c5cf8c |
foreach $arg (@args) {
|
|
Packit Service |
c5cf8c |
print "arg $arg\n";
|
|
Packit Service |
c5cf8c |
}
|
|
Packit Service |
c5cf8c |
print "Remainder is $remainder\n";
|
|
Packit Service |
c5cf8c |
}
|
|
Packit Service |
c5cf8c |
}
|
|
Packit Service |
c5cf8c |
}
|