Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Shell Command Parser
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Golang Package - sh
sh is a shell parser, formatter, and interpreter. Supports POSIX Shell, Bash, and mksh. Requires Go 1.17 or later.
Python Package - shlex
shlex makes it easy to …
Parse YAML in Rust
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Comments¶
- The serde_yaml crate is the best tool for parsing YAML in Rust.
Parse Command Line Arguments in Go
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
-
flag is a Go standard library for parsing command-line arguments. It is simple but limited. For more discussions, please refer to Parse Command Line Arguments Using Flag in Go .
Parse Xml in Python
xml.etree.ElementTree
from html.parser import HTMLParser
https://www.crummy.com/software/BeautifulSoup/bs4/doc/
xml.etree.ElementTree
is for parsing strict XML text.
Do NOT use xml.etree.ElementTree
to parse HTML string.