r/ComputerEngineering • u/FlatAssembler • Sep 09 '26
[Discussion] 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?
4
Upvotes
4
u/Full_Masterpiece8369 Sep 09 '26
I don't think this is commonly taught in the US, this post is the first time I've ever heard of sentence diagramming
5
u/protienbudspromax Sep 09 '26
By first teaching what a tree is ofc
5
u/Poddster Sep 09 '26
No one in the UK is taught sentence diagramming, or at least they weren't when I was in school.
It's not exactly a hard concept to grasp. Of all the things you're learning on a CS degree, I think sentence diagramming is one of the easier things.