Languages
Brainfuck
Installing Brainfuck on Ubuntu in TIDE
Brainfuck
Brainfuck is a minimalist esoteric programming language created in 1993 by Urban Müller. It operates on an array of memory cells using a tiny instruction set of eight commands.
Installation
Install the beef Brainfuck interpreter via Ubuntu apt:
apt update
apt install -y beefVerification
Verify the beef interpreter installation:
beef --versionWriting and Executing Code
Create a Brainfuck program file named hello.bf:
+++++ +++++ initialize counter cell to 10
[ loop to set up memory cells:
> +++++ ++ cell 1 = 70
> +++++ +++++ cell 2 = 100
> +++ cell 3 = 30
> + cell 4 = 10
<<<< - decrement counter
]
> ++ . print 'H' (72)
> + . print 'e' (101)
+++++ ++ . print 'l' (108)
. print 'l' (108)
+++ . print 'o' (111)
> ++ . print ',' (44)
> . print ' ' (32)
<< +++++ +++++ +++++ . print 'W' (87)
> . print 'o' (111)
+++ . print 'r' (114)
----- - . print 'l' (108)
----- --- . print 'd' (100)
> + . print '!' (33)
> . print '\n' (10)Run the Brainfuck program using beef:
beef hello.bf