# compile-time failure in require
do_require "1)\n";
-# bison says 'parser error' instead of 'syntax error',
+# bison says 'parse error' instead of 'syntax error',
# various yaccs may or may not capitalize 'syntax'.
-print "# $@\nnot " unless $@ =~ /(syntax|parser) error/mi;
+print "# $@\nnot " unless $@ =~ /(syntax|parse) error/mi;
print "ok ",$i++,"\n";
# successful require
$status = $?;
$results = `$CAT $tmpfile`;
$results =~ s/\n+$//;
-# bison says 'parser error' instead of 'syntax error',
+# bison says 'parse error' instead of 'syntax error',
# various yaccs may or may not capitalize 'syntax'.
- $results =~ s/^(syntax|parser) error/\L$1 error/mi;
+ $results =~ s/^(syntax|parse) error/\L$1 error/mi;
$expected =~ s/\n+$//;
if ( $results ne $expected){
print STDERR "PROG: $switch\n$prog\n";
# allow expected output to be written as if $prog is on STDIN
$results =~ s/tmp\d+/-/g;
$results =~ s/\n%[A-Z]+-[SIWEF]-.*$// if $Is_VMS; # clip off DCL status msg
-# bison says 'parser error' instead of 'syntax error',
+# bison says 'parse error' instead of 'syntax error',
# various yaccs may or may not capitalize 'syntax'.
- $results =~ s/^(syntax|parser) error/\L$1 error/mi;
+ $results =~ s/^(syntax|parse) error/\L$1 error/mi;
$expected =~ s/\n+$//;
my $prefix = ($results =~ s/^PREFIX\n//) ;
if ( $results =~ s/^SKIPPED\n//) {
# allow expected output to be written as if $prog is on STDIN
$results =~ s/tmp\d+/-/g;
$results =~ s/\n%[A-Z]+-[SIWEF]-.*$// if $Is_VMS; # clip off DCL status msg
-# bison says 'parser error' instead of 'syntax error',
+# bison says 'parse error' instead of 'syntax error',
# various yaccs may or may not capitalize 'syntax'.
- $results =~ s/^(syntax|parser) error/\L$1 error/mi;
+ $results =~ s/^(syntax|parse) error/\L$1 error/mi;
$expected =~ s/\n+$//;
my $prefix = ($results =~ s/^PREFIX\n//) ;
# any special options? (OPTIONS foo bar zap)