Vocabulary Flashcards
(51 cards)
Compile
To generate a dictionary in computer memory from source text (the written-out form of a definition).
Dictionary
A list of words and definitions including both “system” definitions (predefined) and “user” definitions (which you invent). A dictionary resides in computer memory in compiled form.
Execute
To perform the operations specified.
Extensibility
A characteristic of a computer language that allows a programmer to add new features or modify existing ones.
Glossary
A list of words defined in Forth, showing their stack effects and an explanation of what they do, which serves as a reference for programmers.
Infix notation
The method of writing operators between the operands they affect.
Postfix notation
The method of writing operators after the operands they affect. Also known as Reverse Polish Notation.
Prefix notation
The method of writing operators before the operands they affect. Also known as Polish Notation.
Actual arguments
The parameters/expressions used to call a function(or are passed to the function) .
Formal parameters
The parameters which are used in the function prototype.
Interpret
To read the input stream, then to find each word in the dictionary or, failing that, to convert it to a number.
LIFO
Last in, first out.
FIFO
First in, first out.
Stack
A region of memory that is controlled in such a way that data can be stored or removed in a last-in, first-out (LIFO) fashion.
Stack overflow
The error condition that occurs when the entire area of memory allowed for the stack is completely filled with data.
Stack underflow
The error condition that occurs when an operation expects a value on the stack, but there is no valid data on the stack.
Word
The name of a definition, a defined dictionary entry.
Run-time
When a word is executed.
Compile-time
When a definition is compiled.
Organize procedures
- Define useful tasks and give each task a name.
2. Group related tasks together into larger tasks and give each of these a name.
Data stack
The region of memory which serves as common ground between various operations to pass arguments from one operation to another.
Return stack
A region of memory distinct from the data stack which the Forth system uses to hold return addresses, among other things.
Definite loop
A loop structure in which the words contained within the loop repeat a definite number of times.
Infinite loop
loop structure in which the words contained within the loop continue to repeat without any chance of an external event stopping them, except for the shutting down or resetting the computer.