First page Back Continue Last page Overview Graphics
A+ Assignment Statements
In General
Variables are Integers or floating point numbers
They are assigned the value of expressions which are evaluated to a numeric value.
Floating Points are expressed with any of the letters except x which is reserved for other puproses
Integers are a $ followed by any of the letter of the alphabet
X is reserved as a macro character to represent values to be plugged in by the interpreter for algebreic functions.
XML
assignment::= variable "=" expression.
variable::=float | integer.
float::=”a”..”w” | “y”..”z”.
integer::=$”a”..”z”.
expression::=(O(sign)operand operator O(sign)operand) | O(sign) operand.
operand::= expression | variable | constant | function operand | calcfunction | sum | product.
sign::= "+" | "-".
operator::= sign | "*" | "/" | relation | bitwise | “[“ | “~”.
relation::="<" | ">" | "<=" | ">=" | "<>" | "==" | “||” | “&&”.
bitwise::=”&” | “^” | “|”.
function::= trig | unitconversion | logarithmic | exponential | “ABS” | “FACT”.
algebraexpression::= (O(sign)algebraoperand operator O(sign)algebraoperand).
algebraoperand::= “X” | algebraexpression | variable | constant | function algebraoperand | calcfunction | sum | product.
Notes: