[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Command line parsing of integer arguments with genparse
From: |
Michael Geng |
Subject: |
Command line parsing of integer arguments with genparse |
Date: |
Tue, 9 Oct 2007 07:43:05 +0200 |
User-agent: |
Mutt/1.5.9i |
Hi,
I extended genparse such that it is now able to parse also long,
unsigned long, intmax_t, uintmax_t and double command line arguments.
The attached patch will invoke genparse to generate command line
parsers for the ls, tail and wc commands. I already submitted similar
patches some time ago, this one shows for the tail command how it parses
integer and double values. The patch is targeted to the git version from
yesterday (Oct. 8). I verified that it passes "make distcheck".
You can get the latest version of genparse, updated docu and
examples from http://genparse.sourceforge.net/ as usual. You will
need version 0.7.1 of genparse in your path if you want to compile
this patch yourself. You can especially find the generated parser
code for the tail command from
http://genparse.sourceforge.net/examples/tail_clp.c.
Michael
genparse-git-10-08-2007.patch
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Command line parsing of integer arguments with genparse,
Michael Geng <=