385 karma · joined Apr 25, 2021 (5y ago) · 75 submissions
comment 1y ago · link · parent
Yesterday I changed the signature of a method, and instead of complaining at the callsites I got a ”ambiguous method” error for a built in SwiftUI view modifier. Kinda hard to track down if you’re not completely aware of the changes you’ve made
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 2y ago · link · parent
comment 3y ago · link · parent
48.
Swedish video game company Mindark replaces 50% of workforce with AI(kollega.se ↗)
1 points · by emoII · 3y ago · 2 comments
comment 3y ago · link · parent
comment 3y ago · link · parent
The parser groups the tokens into meaningful statements, it implements the grammar. If the parser sees an "if", it expects some condition next (depending on the grammar of course). If the parser detects statements that are not consistent with the grammar of the language, it should reject the program.
Tldr they work on different levels, lexers just finds the individual building blocks, the parser builds the program
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 4y ago · link · parent