Skip to main content
4 events
when toggle format what by license comment
Dec 4, 2022 at 10:20 vote accept dumbPotato21
Dec 4, 2022 at 9:55 comment added Pseudonym In the real world, the lines between a lexer and a parser are blurry. But they're often not as blurry in language specifications.
Dec 3, 2022 at 13:56 comment added dumbPotato21 So aren't the lines between a lexer and parser blurry? I imagined that the parser is the one which looks ahead and decides which path of the grammar to take(say X -> A | B | C) but couldn't you do that within the lexer as well?
Dec 3, 2022 at 13:46 history answered Pseudonym CC BY-SA 4.0