Parse-Vipar
view release on metacpan or search on metacpan
lib/Parse/Vipar/Shell.pm view on Meta::CPAN
$win->configure(-menu => $menubar);
# Stolen from example code menus.pl
my $modifier = 'Meta'; # Unix
if ($^O eq 'MSWin32') {
$modifier = 'Control';
} elsif ($^O eq 'MacOS') { # one of these days
$modifier = 'Command';
}
my $m_file = $menubar->cascade(-label => '~File', -tearoff => 0);
$m_file->command(-label => 'Load ~Parser...',
-command => sub {
$self->fileDialog("load parser %s",
["YACC files", '*.y'])
});
$m_file->command(-label => 'Load ~Input...',
-command => sub { $self->fileDialog("load %s") });
$m_file->command(-label => 'Exit', -command => \&Tk::exit);
# Setup lookahead explanations
( run in 0.918 second using v1.01-cache-2.11-cpan-49f99fa48dc )