From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: completion for flex/bison
Date: Mon, 13 Sep 1999 11:05:19 +0200 (MET DST) [thread overview]
Message-ID: <199909130905.LAA05553@beta.informatik.hu-berlin.de> (raw)
Quite simple.
Bye
Sven
diff -u -r oldcompletion/User/_bison Completion/User/_bison
--- oldcompletion/User/_bison Mon Sep 13 10:38:02 1999
+++ Completion/User/_bison Sat Sep 11 17:44:04 1999
@@ -0,0 +1,21 @@
+#compdef bison
+
+_arguments -s \
+ '(--file-prefix)-b[specify output file prefix]:output file prefix:' \
+ '(--defines)-d[write token definition file]' \
+ '(--raw)-r[output bison token numbers]' \
+ '(--token-table)-k[output token table]' \
+ '(--no-lines)-l[don'"'"'t generate #line directives]' \
+ '(--no-parser)-n[don'"'"'t generate parse (only declarations)]' \
+ '(--output-file)-o[specify parser output file name]:parser file name:_files' \
+ '(--name-prefix)-p[change yy prefix]:prefix string:' \
+ '(--debug)-t[output YYDEBUG definition]' \
+ '(--verbose)-v[verbose mode]' \
+ '(--version)-V[show version]' \
+ '(--help)-h[show help]' \
+ '(--yacc --fixed-output-file)-y[imitate yacc'"'"'s output file convention]' \
+ ':input file:_files -g \*.\(\#i\)\(bison\|yacc\)' \
+ -- \
+ '*=outfile:parser file name:_files' \
+ '*file-prefix=prefix:output file prefix:' \
+ '*name-prefix=prefix:prefix string:'
diff -u -r oldcompletion/User/_flex Completion/User/_flex
--- oldcompletion/User/_flex Mon Sep 13 10:38:02 1999
+++ Completion/User/_flex Sat Sep 11 00:54:43 1999
@@ -0,0 +1,44 @@
+#compdef flex
+
+local state line ret=1
+typeset -A options
+
+_arguments -s \
+ --help --version \
+ '-b[generate backing-up information]' \
+ '-d[make scanner running in debug mode]' \
+ '-f[generate fast scanner (full table)]' \
+ '-h[show help]' \
+ '-i[generate case-insensitive scanner]' \
+ '-l[maximum compatibility with lex]' \
+ '-p[generate performance report]' \
+ '-s[suppress default rule]' \
+ '-t[write scanner to stdout]' \
+ '-v[show summary of statistics about scanner]' \
+ '-w[suppress warnings]' \
+ '-B[generate batch scanner]' \
+ '-F[use fast scanner table representation]' \
+ '-I[generate interactive scanner]' \
+ '-L[don'"'"'t generate #line directives]' \
+ '-T[trace mode]' \
+ '-V[show version]' \
+ '-7[generate 7-bit scanner]' \
+ '-8[generate 8-bit scanner]' \
+ '-+[generate C++ scanner class]' \
+ '-C-[specify degree of table compression]:table compression:->tabcomp' \
+ '-o-[specify output file]:output file:_files' \
+ '-P-[change yy prefix]:prefix string:' \
+ '-S-[override skeleton file]:skeleton file:_files' \
+ '*:input files:_files -g \*.\(\#i\)\(f\|\)lex' && ret=0
+
+if [[ -n "$state" ]]; then
+ _values -s '' 'table compression' \
+ 'a[align tables]' \
+ 'e[construct equivalence classes]' \
+ '(m)f[generate full tables]' \
+ '(m)F[generate fast tables]' \
+ '(f F)m[construct meta-equivalence classes]' \
+ 'r[don'"'"'t use stdio library]' && ret=0
+fi
+
+return ret
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
reply other threads:[~1999-09-13 9:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=199909130905.LAA05553@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).