Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1.17 KB

README.md

File metadata and controls

35 lines (27 loc) · 1.17 KB

BrainFuck

BrainFuck interpreter for Cuis Smalltalk .

Ported from: http://www.squeaksource.com/BrainFuck.html, author: Bernat Romagosa.

Installation Instructions

After cloning this repo, open a workspace in Cuis and type:

Feature require: #'BrainFuck'.

To try it out

(BFInterpreter program: myBrainFuckProgramInAString) executeProgram.

You can find some examples in BFInterpreter's class side methods, categorized under "examples".

The output is sent to the Transcript. hello_bf

You can output to any stream (outputTo:) and to a file (outputToFile:).

file_bf

You can read a program from a file (using programFile:)

| p |
p := BFInterpreter programFile: '/path/to/file'.
p executeProgram. 

References