Execute Brain****/Ada: Difference between revisions

m
Spelling/grammar
m (RCBF (Ada) moved to RCBF/Ada: now using subpages)
m (Spelling/grammar)
Line 4:
This implementation imposes hard limits in the size of both the memory and the program size. The whole program is read first, and then interpreted. The program must be stored in a file. The filename is given as the only argument to the interpreter.
 
The program reads input data from the standard input and writes output data to the standard output. Error messages go to the standard error output. Of course, these channels can be redirected to files, as usual, when invoking the BF interpreter.
 
The program is stored internally in a fixed length array of characters. Programs larger than the array size cannot be processed.
 
The internal data memory is implemented as a fixed length array of integers. Programs that attempattempt to go beyond the memory limits will stop with an error message at run time.
 
To allow using the interpreter in an interactive terminal session, control characters are ignored on input. But they can be generated on output, like any other ASCII character.
Line 159:
end if;
 
when ']' => -- (]) end of loop sructurestructure
if M(Mp) /= 0 then
-- repeat loop, goto matching '['
Anonymous user