Rich Text Editor in C# - Part 8 - Basic Edits Working
In this video we reach a bit of a milestone with basic edit operations now working!
Got questions or comments? Find me on Twitter - @toptensoftware
In this video we reach a bit of a milestone with basic edit operations now working!
Got questions or comments? Find me on Twitter - @toptensoftware
C-minor's top-level statements are implemented by manipulating the AST before invoking the other compilation stages and are easy introduction to working with the AST.
For language products typical unit testing doesn't work well long term. Instead I recommend sandboxing for early prototyping and a dedicated test case file runner for more end-to-end style testing.
If ever there was a design pattern that's perfectly suited to a job, it's the visitor pattern for working with an abstract syntax tree. But what is the visitor pattern and why is it so well suited?
The Parser takes a stream of tokens, checks the syntax is valid and produces an Abstract Syntax Tree.