YAPPS2(1)

πŸ’– YAPPS2(1) β€” General Commands Manual πŸ’–

okay bestie, listen up, this is the manual page for yapps2 and it's literally the moment your grammar description file becomes an actual python parser. no cap. let's get into it πŸ¦‹


✨ NAME ✨

yapps2 β€” generate python parser code from grammar description file πŸ’…


🌸 SYNOPSIS 🌸

yapps2 [-h] [-i, --context-insensitive-scanner] [-t, --indent-with-tabs]
[--dump] grammar_file[parser_file]

that's the whole vibe right there. flags first, files after, iconic πŸ’–


πŸŽ€ DESCRIPTION πŸŽ€

so yapps2 generates python parser code from a grammar description file. that's it. that's the job. you hand it a grammar, it hands you back python parser code, and honestly? slay. ✨


πŸ‘‘ OPTIONS πŸ‘‘

every single flag, accounted for, no gatekeeping 🫢

  • -h, --help β€” show a help message and exit. the classic "wait what does this even do" button. press it, it loves being pressed πŸ’–
  • -i, --context-insensitive-scanner β€” Scan all tokens. See the documentation for details πŸ‘€ (fr fr, the docs have the tea on this one, go read them)
  • -t, --indent-with-tabs β€” Use tabs instead of four spaces for indentation in generated code. the eternal tabs-vs-spaces war and this flag picks a side. bold. brave. πŸ’…
  • --dump β€” Dump out grammar information. like, all the grammar info, out in the open, no filter 🌈
  • grammar_file β€” grammar description file (input). this is the one you're feeding in, bestie, the main character of the input situation ✨
  • parser_file β€” Name of the output file to be generated. The grammar file's name, with .py appended, will be used, if omitted. so if you don't name it, it just goes "okay so your grammar file but with .py at the end" and that's the default, periodt πŸ’–

heads up bestie: -i, --context-insensitive-scanner says "See the documentation for details" and that is not me being vague, that is literally what the page says, so go peek at the docs if you want the full lore πŸ“š

🧚 cute little sign-off 🧚

and that's the page!! this whole thing lives under the YAPPS2(1) title in the General Commands Manual section, so if you ever need to find it again, that's where it's at. go forth and generate some parser code, you absolute icon πŸ‘‘πŸ’–βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from