Skip to content

thiagoslino/BrainFuck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published