KPEG(1)
β¨ KPEG β the manual page, but make it a group chat π
okay bestie, buckle up, we're talking about kpeg from the User command section, and honestly? it's giving parser-generator royalty π
πΈ NAME πΈ
kpeg β a ruby parser generator that builds your parser straight out of a PEG grammar. no cap. π¦
π SYNOPSIS π
kpeg [ options ]
that's it, that's the whole vibe. you just run it with whatever options you want and let it cook π₯
π DESCRIPTION π
so like, here's the tea π: kpeg generates a ruby parser from a PEG (parsing expression grammar) file. you write the grammar, it hands you back a parser. iconic behaviour, truly. β¨
the grammar syntax is described on the kpeg home page, which lives right here:
<https://github.com/evanphx/kpeg>
literally go read it, iykyk π
β¨ OPTIONS β¨
okay this is the part where we get into the flags, and there are exactly eight of them, so let's go one by one like the organized queen you are π
-t,--testβ just syntax check the file, nothing else. it's the "am i doing this right?" button π--reformatβ reformat your grammar and write it right back out. glow-up for your grammar file π-o,--output FILEβ tells it where the output should go. FILE is your destination, bestie π-n,--name NAMEβ the class name to use for the parser. NAME it and claim it π-f,--forceβ overwrite the output if it already exists. consent matters, so this is the explicit yes β-s,--stand-aloneβ write the parser so it can run standalone. independent main character energy fr fr π-v,--[no-]verboseβ run verbosely. yes, the[no-]is real β you can turn it off too. talkative or mysterious, your call π£οΈ-d,--debugβ debug the parsing of the file. for when it's not giving what it's supposed to give π
heads up bestie:-f,--forceis the one that overwrites things. if your output file already exists and you didn't pass it, that's a whole situation. be careful out there π«Ά
π AUTHOR π
this manual page was written by Dominique Dumont <dod@debian.org>, for the Debian GNU/Linux system (but may be used by others). absolute legend, we stan π
π¦ SEE ALSO π¦
- kpeg home page <https://github.com/evanphx/kpeg> β same link, still essential, go click it π
and that's the whole page, babe π§ this was kpeg, dated 2024-09-24, and it's a KPEG(1) situation β so go forth, write your grammar, and generate something beautiful. periodt. πβ¨π
π¦ where this page comes from
- ubuntu resolute: ruby-kpeg 1.3.3-1 Β· BSD
- ubuntu stonking: ruby-kpeg 1.3.3-1 Β· BSD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms