- the input will always be valid. No destructive operators will be entered (such as a / 0 which divides the accumulator by zero.
- each command will perform only one operation on the accumulator, so there will be no command which multiplies the accumulator by 3, squares it and adds 5 to it all in one go.
- each command is one letter long.
- the shortest answer in bytes wins. [code-golf rules]
- the interpreter should read the program from STDIN or from a file.
- on TIO, you may pre-define the input array in the header section, but your program should obviously be able to handle any valid input.
- you only need to support the six operators mentioned previously.
- commands can involve floating point numbers and not only integers
- you may replace the operators but you must then state which ones you changed
- you may output a float even if all operators yield integers. You may not truncate outputs however
Became Hot Network Question
- the input will always be valid. No destructive operators will be entered (such as a / 0 which divides the accumulator by zero.
- each command will perform only one operation on the accumulator, so there will be no command which multiplies the accumulator by 3, squares it and adds 5 to it all in one go.
- each command is one letter long.
- the shortest answer in bytes wins. [code-golf rules]
- the interpreter should read the program from STDIN or from a file.
- on TIO, you may pre-define the input array in the header section, but your program should obviously be able to handle any valid input.
- you only need to support the six operators mentioned previously.
- commands can involve floating point numbers and not only integers
- the input will always be valid. No destructive operators will be entered (such as a / 0 which divides the accumulator by zero.
- each command will perform only one operation on the accumulator, so there will be no command which multiplies the accumulator by 3, squares it and adds 5 to it all in one go.
- each command is one letter long.
- the shortest answer in bytes wins. [code-golf rules]
- the interpreter should read the program from STDIN or from a file.
- on TIO, you may pre-define the input array in the header section, but your program should obviously be able to handle any valid input.
- you only need to support the six operators mentioned previously.
- commands can involve floating point numbers and not only integers
- you may replace the operators but you must then state which ones you changed
- you may output a float even if all operators yield integers. You may not truncate outputs however
- the input will always be valid. No destructive operators will be entered (such as a / 0 which divides the accumulator by zero.
- each command will perform only one operation on the accumulator, so there will be no command which multiplies the accumulator by 3, squares it and adds 5 to it all in one go.
- each command is one letter long.
- the shortest answer in bytes wins. [code-golf rules]
- the interpreter should read the program from STDIN or from a file.
- on TIO, you may pre-define the input array in the header section, but your program should obviously be able to handle any valid input.
- you only need to support the six operators mentioned previously.
- commands can involve floating point numbers and not only integers
- the input will always be valid. No destructive operators will be entered (such as a / 0 which divides the accumulator by zero.
- each command will perform only one operation on the accumulator, so there will be no command which multiplies the accumulator by 3, squares it and adds 5 to it all in one go.
- each command is one letter long.
- the shortest answer in bytes wins. [code-golf rules]
- the interpreter should read the program from STDIN or from a file.
- on TIO, you may pre-define the input array in the header section, but your program should obviously be able to handle any valid input.
- you only need to support the six operators mentioned previously.
- the input will always be valid. No destructive operators will be entered (such as a / 0 which divides the accumulator by zero.
- each command will perform only one operation on the accumulator, so there will be no command which multiplies the accumulator by 3, squares it and adds 5 to it all in one go.
- each command is one letter long.
- the shortest answer in bytes wins. [code-golf rules]
- the interpreter should read the program from STDIN or from a file.
- on TIO, you may pre-define the input array in the header section, but your program should obviously be able to handle any valid input.
- you only need to support the six operators mentioned previously.
- commands can involve floating point numbers and not only integers
- the accumulator is automatically initialized to 0 at the beginning of a program
- the accumulator is implicitly outputted at the end of a command
(0 + 15)**3*2is disregarded because d reassigns the accumulator to zero(0 + 15)22*2*2/8 = 7.5When given an array of directives, your program should output a complete program in your favorite language (might be the one you write your answer in, but not necessarily) which takes a valid program in the newly generated language and outputs the accumulator at the end of it. If I were using JavaScript and were passed the array we discussed, my program might output
- the accumulator is automatically initialized to 0 at the beginning of a program
- the accumulator is implicitly outputted at the end of a command
(0 + 15)**3*2is disregarded because d reassigns the accumulator to zero(0 + 15)22/8 = 7.5When given an array of directives, your program should output a complete program in your favorite language (might be the one you write your answer in, but not necessarily) which takes a valid program in the newly generated language and outputs the accumulator at the end of it. If I were using JavaScript and were passed the array we discussed, my program might output
- the accumulator is automatically initialized to 0 at the beginning of a program
- the accumulator is implicitly outputted at the end of a command
(0 + 15)**3*2is disregarded because d reassigns the accumulator to zero(0 + 15)*2*2/8 = 7.5When given an array of directives, your program should output a complete program in your favorite language (might be the one you write your answer in, but not necessarily) which takes a valid program in the newly generated language and outputs the accumulator at the end of it. If I were using JavaScript and were passed the array we discussed, my program might output