YYEXTRACT(1)
β¨ NAME β¨
okay bestie, say hi to yyextract π β she extracts grammar rules from a yacc grammar. that's it, that's the whole job, and she does it flawlessly π¦
πΈ SYNOPSIS πΈ
yyextract [-behyV] [-o file] [-t title] [-w cols] [file ...]
like. look at her. the flags. the files. the whole vibe. π
π DESCRIPTION π
so basically? the yyextract utility extracts the grammar rules from a yacc grammar. that's the tea π it reads your grammar and pulls the rules out so you don't have to go dig for them yourself. no cap.
π OPTIONS π
here's the full menu, bestie, and yes you're gonna want to read all of them π
-bβ pick the Backus-Naur Form (BNF) for the output β¨-eβ pick the Extended Backus-Naur Form (EBNF) for the output π¦-hβ output in HTML format π-ofile β set the output destination to file π-ttitle β specify the page title for the generated HTML page π-wcols β set the width limit of the output (heads up, this sets only the width of the%tokenheader π)-yβ pick the yacc format for the output. this one is the default format, so if you say nothing, this is what you get π-Vβ print version information on standard output then exit. she says hi and dips π
π«Ά NOTES π«Ά
ok so real talk: the Extended Backus-Naur Form (EBNF) is like the Backus-Naur Form (BNF) but with the empty rules translated with the zero-or-one operator (within the brackets '[' and ']'). so it's giving BNF's cooler cousin, fr fr πβ¨
π AUTHORS π
Sandro Sigala <sandro@sigala.it> β iconic, we stan π
and that's the whole page bestie!! this lil cutie is from the Debian crew, dated July 15, 2001, and she lives in section 1 of the manual as YYEXTRACT(1). slay, bye πππ¦
π¦ where this page comes from
- debian bookworm: cutils 1.6-6+b1 Β· BSD-2-Clause
- debian trixie: cutils 1.6-7 Β· BSD-2-Clause
- ubuntu jammy: cutils 1.6-5 Β· BSD-2-Clause
- ubuntu noble: cutils 1.6-6 Β· BSD-2-Clause
- ubuntu questing: cutils 1.6-7
- ubuntu resolute: cutils 1.6-7build1 Β· BSD-2-Clause
- ubuntu stonking: cutils 1.6-7build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms