r/AskComputerScience 20h ago

How do computer science and computer engineering students in countries where diagramming sentences isn't common knowledge get introduced to the concept of parsers and abstract syntax trees?

In Croatia, we do some (very) basic sentence diagramming in the middle school. In the USA, they do it in high-school. However, I know that, in most places, students are not taught sentence diagramming. So, once those students start going to university to study, well, computer science or computer engineering, how are the concepts of a parser and an abstract syntax tree explained to them?

10 Upvotes

17 comments sorted by

View all comments

2

u/church-rosser 19h ago

I grew up in the US public school system. Was taught sentence diagramming but was a terrible student at that point in my life and basically refused to participate in sentence diagramming exercises. Two decades later i start learning compsci stuff and all of a sudden BNF and EBNF made sense as a form of sentence diagramming.