string parsing
- the simplest form of string parsing is the cast to int:
int("23") == 23
;split()
andstrip()
as in python - decode string, decode ways (Private)
- extract patterns from strings. regex: e.g, obtain all substrings that end with a digit in a string
- parsing for grammar: https://youtu.be/bxpc9Pp5pZM?si=rtZWMLdkiItkA7nh
- recursive descent parsing https://youtu.be/SToUyjAsaFk?si=ipldkZPrAGnnKi0i
- build parser: https://youtu.be/4m7ubrdbWQU?si=q7rNB9cdSik_Jhfk
- (how do you parse a string of code into an AST? can you use regex? answer: that can't work. but you do use regex for smaller tasks like on the tokens.)
- How to parse input cli/tui apps
- JSON parser hacking how series
- beancount's parser https://github.com/beancount/beancount
Backlinks