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.

huf

From Esolang
Jump to navigation Jump to search

huf is a register-based language with two registers, num (accumulator) and mul (multiplier), both starting at 0. Its syntax is a little similar to brain****, whereas its functionality is similiar to EXCON. Made by Charlie Hough or User:Charmaster16.

A program is scanned for segments matching #...@ (containing no # or @); everything else is a comment. Each segment runs independently, in order, with both registers reset to 0 at the start.

Commands

Command Effect
# Reset: num = 0, mul = 0
+ num += 1 if mul == 0, else mul += 1
| mul = 1 (enters multiply mode)
! num *= (mul - 1), then mul = 0
> Output chr(num), then num = 0. Halts if num isn't 0..0x10FFFF.

Any other character is ignored.

Example

65 = 5 × 13:

#+++++|+++++++++++++!>@

External resources