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 🌈
  • -o file β€” set the output destination to file πŸ“
  • -t title β€” specify the page title for the generated HTML page πŸ‘‘
  • -w cols β€” set the width limit of the output (heads up, this sets only the width of the %token header πŸ™ˆ)
  • -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 πŸŽ€πŸ’œπŸ¦‹