No Semicolons Needed | Terts Diepraam

Why #Lexing and #Parsing Should Be Separate

"Summary: Do the easy thing with the fast algorithm, and the hard thing with the slow algorithm. Lexing and parsing are different things."

#parsers

https://github.com/oils-for-unix/oils/wiki/Why-Lexing-and-Parsing-Should-Be-Separate

Why Lexing and Parsing Should Be Separate

Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell! - oils-for-unix/oils

GitHub

Love 😍 such articles that cover a topic in depth:

“Modern Perfect Hashing For Strings” [2023], Wojciech Muła (http://0x80.pl/notesen/2023-04-30-lookup-in-strings.html).

On HN: https://news.ycombinator.com/item?id=35764176

#Hashing #PerfectHashing #Lexing #LexicalAnalysis #Programming #Algorithms #Trie #gperf #Tokenization

Modern perfect hashing for strings

Mini-rust in Rust 005: Our lexer should be an iterator

https://video.infosec.exchange/w/ionrCpsAgYJTUHgcaaVFFR

Mini-rust in Rust 005: Our lexer should be an iterator

PeerTube
Mini-rust in Rust 004: Refactoring our lexer

PeerTube

Mini-rust in Rust 003: Much prettier errors

https://video.infosec.exchange/w/hdTGJf9tPZcd4NCLxhB4sh

Mini-rust in Rust 003: Much prettier errors

PeerTube

Mini-rust in Rust 002: Errors while lexing

https://video.infosec.exchange/w/1W69DAs934xD5kt81aPADn

Mini-rust in Rust 002: Errors while lexing

PeerTube

Mini-rust in Rust 001: Lexing an int

https://video.infosec.exchange/w/1fxVSgKQ1afpa1Ny37LBp7

Mini-rust in Rust 001: Lexing an int

PeerTube

How to Train Your Scrappy Programmer devotes an entire chapter to parsing. Every programmer needs to parse inputs. Learn four different techniques for cracking open even the hardest content.

https://voyagesincode.com/products/the-wild-world-of-parsing

#parsing #lexing #tokenization #NimbleParsec #yecc #leex

The Wild World of Parsing

1. Writing a programming language - the Lexer

https://video.infosec.exchange/w/ja8bdAJjNv2KhxU8QvWdbn

1. Writing a programming language - the Lexer

PeerTube