- argument
-
the inputs to a function; the expressions for each argument follow the function name
- Boolean
-
a type of data with two values: true and false
- calling
-
using a function by giving it inputs
- comments
-
messages in the code, generally ignored by the computer, to help people interacting with the code understand what it is doing
- constructor
-
a function that creates instances of a data structure
- contract
-
a statement of the name, domain, and range of a function
- contract error
-
errors where the code makes sense, but uses a function with the wrong number or type of arguments
- data block
-
code that lists the name, constructor(s), and field(s) of a data structure
- data structure
-
a 'container' data type, which has fields that can hold other data (e.g. - a 'coordinate' is a data structure holding number fields x and y)
- data type
-
a way of classifying values, such as: Number, String, Image, Boolean, or any user-defined data structure
- define
-
to associate a descriptive name with a value
- definitions area
-
the left-most text box in the Editor where definitions for values and functions are written
- domain
-
the type or set of inputs that a function expects
- dot accessor
-
a way to extract the values of fields an instance
- editor
-
software in which code can be written and evaluated
- error message
-
information from the computer about errors in code
- event
-
something that happens outside of a running program, which the program can respond to
- example
-
shows the use of a function on specific inputs and the computation the function should perform on those inputs
- field
-
a part of a data structure that has a name and holds a single value of a specified data type
- function
-
a relation from a set of inputs to a set of possible outputs, where each input is related to exactly one output
- function definition
-
code that names a function, lists its variables, and states the expression to compute when the function is used
- handler
-
Connects an event (like a tick or keypress) and a function within a reactor
- helper function
-
a small function that handles a specific part of another computation, and gets called from other functions
- hypotenuse
-
the side opposite the 90-degree angle in a right triangle
- image
-
a type of data for pictures
- instance
-
a specific example of a data structure, with specific values for each field (e.g. - (4,5) is an instance of an (x,y) coordinate
- interactions area
-
the right-most text box in the Editor, where expressions are entered to be evaluated
- name
-
how we refer to a function or value defined in a language (examples: +, *, star, circle)
- operator
-
a symbol that manipulates two Numbers and produces a result
- origin
-
the point (0,0) where the horizontal and vertical axes intersect
- piecewise function
-
a function that computes different expressions based on its input
- purpose statement
-
a concise, detailed description of what a function does with its inputs
- range
-
the type or set of outputs that a function produces
- ratio
-
the relative sizes of two or more values
- reactor
-
a value that contains a current state, and functions for updating, drawing, and interacting with that state
- refactor
-
the process of changing the style or structure of a program’s code, without changing the program’s behavior
- scale
-
resize an image to be larger or smaller while maintaining ratios and proportions
- state
-
the value of a changing system at any point in time (i.e. a stoplight can be in the 'red', 'yellow' or 'green' state). In Pyret, the state of a Reactor is it’s current value.
- syntax error
-
errors where the computer cannot make sense of the code (e.g. - missing commas, missing parentheses, unclosed strings)
- value
-
a specific piece of data, like 5 or "hello"
- variable
-
a name or symbol that stands for some value or expression, often a value or expression that changes