-
Book Overview & Buying
-
Table Of Contents
Building Programming Language Interpreters
By :
Programming languages have designs that navigate through many different paradigms on how the code has to be specified. Some languages adhere more strictly to one style than another, but it is still useful to consider those broad categories.
The imperative paradigm focuses on describing the operations the computer will have to do in order to solve a particular problem. There is an expected mapping from the code to what the computer will actually do.
The functional paradigm pushes the problem into the space of how values are transformed by functions, rather than how the state is manipulated by specific operations. The runtime is then able to choose different execution strategies without changes being required in the code.
Declarative programming languages tend to focus on specific environments and make it significantly more straightforward to solve problems in that particular space. They allow the runtime to decide how to solve operational problems in order to achieve...
Change the font size
Change margin width
Change background colour