Adding Features
You’ll notice that the following chapters will all follow a similar pattern. This pattern is the typical approach used to add new features to a language. It consists of a number of steps that bring a feature from start to finish. These are listed below, and are exactly what we’re going to do in this chapter to introduce a new feature called a Q-Expression.
Syntax | Add new rule to the language grammar for this feature. |
Representation | Add new data type variation to represent this feature. |
Parsing | Add new functions for reading this feature from the abstract syntax tree. |
Semantics | Add new functions for evaluating and manipulating this feature. |
当前内容版权归 orangeduck 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 orangeduck .