We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
CQfuck
Jump to navigation
Jump to search
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
CQfuck is an esolang by User:ChuckEsoteric08 where [ and ] use Call Queue instead.
How it works
The only change from brainfuck are the [ and ] instructions.
[enqueues the current IP to the "call queue". It does not jump forward even if the current value is zero, so only post-test loops can be formed in this language, not pre-test loops.]dequeues from the "call queue". If the current cell value is nonzero, it sets the IP to the dequeued value (where[immediately enqueues the same value again), otherwise the dequeued value is discarded.
Examples
Cat Program
[,.]
Print HI
+++++++[->++++++++++<]>++.+.
Truth-machine
,[->+>+<<]++++++++[->------<]>[>.<]
Looping counter
+++++++[->++++++<]++++++++++[.[>.<]
Interpreter
- Common Lisp implementation of the CQfuck programming language.