#! /usr/bin/perl -w sub usage { print < phraseology.vlist EoF } use strict; use Symbol; my $fgroot = $ENV{'FG_ROOT'} || '.'; main: { if (@ARGV) { usage; exit; } my $mapfn = "$ENV{'FG_SRC'}/src/ATCDCL/atis_lexicon.hxx"; my $mapch = Symbol::gensym; if (!open($mapch, '<', $mapfn)) { print STDERR "Could not open abbreviation file '$mapfn'\n"; print STDERR "Maybe you need to set FG_ROOT\n"; exit(1); } print "/\n"; while (my $line = <$mapch>) { chomp $line; if ($line =~ s/^[ \t]*Q[(]//) { $line =~ s/[)][ \t]*$//; print "$line\n"; } } print <