Chapter 14: Implementing Operators and Built-In Functions
New programming languages are invented because occasionally, new ideas and new computational capabilities are needed to solve problems in new application domains. Libraries of functions or classes are the basic means of extending mainstream languages with additional computational capabilities, but if adding a library was always sufficient, you wouldn't need to build your own language, would you?
This chapter and the next discuss language extensions that go beyond libraries. This chapter will describe how to support very high-level and domain-specific language features by adding operators and functions that are built into the language. The following chapter will discuss adding control ...
Get Build Your Own Programming Language now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.