Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compilers > #3141
| From | Roger L Costello <costello@mitre.org> |
|---|---|
| Newsgroups | comp.compilers |
| Subject | Do people create parsers for command line arguments? |
| Date | 2022-07-28 11:14 +0000 |
| Organization | Compilers Central |
| Message-ID | <22-07-054@comp.compilers> (permalink) |
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]
Back to comp.compilers | Previous | Next — Next in thread | Find similar
Do people create parsers for command line arguments? Roger L Costello <costello@mitre.org> - 2022-07-28 11:14 +0000
Re: Do people create parsers for command line arguments? Kaz Kylheku <480-992-1380@kylheku.com> - 2022-07-29 20:52 +0000
Re: Do people create parsers for command line arguments? gah4 <gah4@u.washington.edu> - 2022-07-29 15:30 -0700
Re: Do people create parsers for command line arguments? Giacinto Cifelli <gciofono@gmail.com> - 2022-08-08 18:25 +0200
Re: Do people create parsers for command line arguments? gah4 <gah4@u.washington.edu> - 2022-08-08 22:01 -0700
Re: Do people create parsers for command line arguments? Johann 'Myrkraverk' Oskarsson <johann@myrkraverk.invalid> - 2022-09-29 13:16 -0400
Re: Do people create parsers for command line arguments? gah4 <gah4@u.washington.edu> - 2022-08-23 15:07 -0700
csiph-web