Do people create parsers for command line arguments?

Roger L Costello <costello@mitre.org>
Thu, 28 Jul 2022 11:14:51 +0000

          From comp.compilers

Related articles
Do people create parsers for command line arguments? costello@mitre.org (Roger L Costello) (2022-07-28)
Re: Do people create parsers for command line arguments? 480-992-1380@kylheku.com (Kaz Kylheku) (2022-07-29)
Re: Do people create parsers for command line arguments? gah4@u.washington.edu (gah4) (2022-07-29)
Re: Do people create parsers for command line arguments? gciofono@gmail.com (Giacinto Cifelli) (2022-08-08)
Re: Do people create parsers for command line arguments? gah4@u.washington.edu (gah4) (2022-08-08)
Re: Do people create parsers for command line arguments? gah4@u.washington.edu (gah4) (2022-08-23)
Re: Do people create parsers for command line arguments? johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson) (2022-09-29)
| List of all articles for this month |

From: Roger L Costello <costello@mitre.org>
Newsgroups: comp.compilers
Date: Thu, 28 Jul 2022 11:14:51 +0000
Organization: Compilers Central
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="43119"; mail-complaints-to="abuse@iecc.com"
Keywords: parse, question
Posted-Date: 29 Jul 2022 16:36:44 EDT
Thread-Topic: Do people create parsers for command line arguments?
Thread-Index: AdiicpvzhWv6ZobPSqqIxS+5l4SpAw==
Accept-Language: en-US
Content-Language: en-US
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=mitre.org;

Hi Folks,


I've seen some tools with pretty complicated arguments. The argument list is a
language unto itself.


Do people create parsers for command line arguments? Or is a parser overkill?


/Roger
[On Unix-ish systems, the shell breaks the command into space separated arguments, while
the rest is up to each program. Many languages have argument handling libraries, typically
recognizing arguments of various types such as switches, numbers, and filenames. Some shells
like zsh have complicated command completion schemes which know as you type what each bit
of a command is supposed to be so it can prompt you. See the zsh manpages for a very long
discussion of how it works.
Back in the olden days, Tenex had command completion built into the operating system which
seemed pretty cool at the time. The manual should be in bitsavers. -John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.