Abstract
In this chapter the second ingredient of a program namely “actions” that programmers use to manipulate data for solving real-world problems are introduced. Actions are transformed into machine instructions, which are then decoded and executed by the CPU. After a brief discussion on the purpose and the scope of actions, different action types are introduced. An important part of Chap. 3 is devoted to expressions and their evaluation: regarding this, Church–Rosser property, side-effects and Dikstra’s “Shunting Yard Algorithm”, which is the most common expression evaluation method, are presented. The chapter also talks about the different operators that a programmer can use in expressions, the actions that can be used for controlling the flow of the program (i.e., conditionals) and the actions that can be reused again (i.e., functions). Like other chapters, the discussions and the presentations are supported by the case studies and examples in Python.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
A global variable is a variable that is accessible by all functions.
- 2.
“Entscheidungsproblem” means “decision problem” in German.
- 3.
Archaically, not value returning functions were named as subroutines or procedures.
- 4.
Excluding stochastic functions.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2012 Springer-Verlag Wien
About this chapter
Cite this chapter
Üçoluk, G., Kalkan, S. (2012). Actions: The Second Ingredient of a Program. In: Introduction to Programming Concepts with Case Studies in Python. Springer, Vienna. https://doi.org/10.1007/978-3-7091-1343-1_3
Download citation
DOI: https://doi.org/10.1007/978-3-7091-1343-1_3
Publisher Name: Springer, Vienna
Print ISBN: 978-3-7091-1342-4
Online ISBN: 978-3-7091-1343-1
eBook Packages: Computer ScienceComputer Science (R0)