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.pyappended, will be used, if omitted. so if you don't name it, it just goes "okay so your grammar file but with.pyat 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
- debian bookworm: yapps2 2.2.1-3.1
- debian trixie: yapps2 2.2.1-3.2
- ubuntu jammy: yapps2 2.2.1-3.1
- ubuntu noble: yapps2 2.2.1-3.2
- ubuntu questing: yapps2 2.2.1-3.2
- ubuntu resolute: yapps2 2.2.1-4 Β· MIT
- ubuntu stonking: yapps2 2.2.1-4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms