# New Ticket Created by Bernhard Schmalhofer # Please include the string: [perl #24187] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt2/Ticket/Display.html?id=24187 >
Hi, for Parrot m4, I have started on a parser for command line options. The idea is to port the Perl5 module Getopt::Long to PIR. Right now it handles only long options and the interface is still pretty nasty. As it might be useful for other programs, I have prepared the two files: i. runtime/parrot/include/Getopt_Long.imc is the module ii. examples/assembly/getopt_demo.imc is a demo program getopt_demo.imc can be fired up with: parrot examples/assembly/getopt_demo.imc --help Getopt_Long.imc is fairly messy. In order to clean it up, I'm planning on using pcre. I like pcre, because it propably can be used for regex support in Parrot m4. CU, Bernhard -- attachment 1 ------------------------------------------------------ url: http://rt.perl.org/rt2/attach/65944/49257/3dd37f/Getopt_Long.imc -- attachment 2 ------------------------------------------------------ url: http://rt.perl.org/rt2/attach/65944/49258/f2f78c/getopt_demo.imc
Getopt_Long.imc
Description: Getopt_Long.imc
getopt_demo.imc
Description: getopt_demo.imc