Text Editors Let You Write Invalid Code. Tree Editors Wouldn't.
Every compiler sees your code as a tree, but your editor lets you edit raw text.
Every programming language has a formal grammar. Your compiler reads it, builds a parse tree, and rejects anything that doesn't fit. Your editor ignores the…