phil2bf : 99 Bottles of Beer

Thursday, May 30, 2024 at 3:01 PM

I just made a webpage so anyone can try programming in the language I created that is compiled into Brainfuck.

I still do not have a name for the language.

http://www.philippe97.ca/phil2bf/

Here is my version of 99 Bottles of Beer :

char num1 set num1 '9
char num2 set num2 '9
char lines set lines 99
while lines
	dec lines
	
	char out
	
	declare number
		equal out num1 '0 ifnotz out
			put num1
		end
		put num2
	return
	
	inline number print \ bottles\ of\ beer\ on\ the\ wall.\n
	inline number print \ bottles\ of\ beer.\n
	print Take\ one\ down,\ pass\ it\ around,\n
	
	equal out num2 '0 ifz out
		dec num1
		set num2 '9
		inc num2
	end
	dec num2
	
	inline number print \ bottles\ of\ beer\ on\ the\ wall.\n
	
	print \n
end

Name
Password

No need to register, just enter the same name and password every time.