Skip to content

quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack

Notifications You must be signed in to change notification settings

Snowflakieeeee/Duckie-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duckie lang

A mostly esoteric programming language created in C (for extra suffereing for the developer), formerly in python

A programming language i thought of over breakfast, turns out a similar programming language exists called chicken
anyways, mine has a similar theme, but with quacks
The program goes as follows:- only command ==> "quack" commands/strings other than this should not be compiled (intended)
the number of quacks per line will correspond to a particular op code :-
SI --> stack pointer (always pointing on the next cell on stack)
1 --> add (SI-1 + SI-2 = SI) SI++
2 --> sub (SI-1 - SI-2 = SI) SI++
3 --> mul (SI-1 * SI-2 = SI) SI++
4 --> div (SI-1 / SI-2 = SI) SI++
5 --> push to stack (next line is input for alphabet no. 0-26)
6 --> goto (next line for input line no.)
7 --> pop and print int on top of the stack (as is)
8 --> pop character and print character on top of the stack (convert ascii to char) // <32 ==> newline :: >127 ==> whitespace
9 --> take one char input and pushes onto stack (push ascii value)
10+ --> pushes literal number n-10 to stack (as is)

now, given that we have quacks per line, I think the first known bug makes sense, but I am working on fixing it.

x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x

known bugs
---> Newline produces one quack resulting in op code 1, resulting in addition of values when not needed currently advised to sticking with code without unncessary newlines

hello world example

quack quack quack quack quack 
quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack quack quack quack quack quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack quack quack quack quack quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack quack quack quack quack quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack 
quack quack quack quack quack 
quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack 
quack quack quack quack quack quack quack quack 

yep, happy quacking.

About

quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack quack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages