1 Bit, an eight byte

From Esolang
Jump to navigation Jump to search

1 Bit, an eight byte is the worst programming language. There are no quines.

Commands

0 - output 1
1 - output 0

That's it.

Programs

1

0

0

1

Implementation

An implementation's ostension in the programming language Common Lisp shall be furnished:

(defun interpret-|1 Bit, an eight byte| (code)
  "Interprets the piece of \"1 Bit, an eight byte\" source CODE and
   returns no value."
  (declare (type string code))
  (loop
    for current-token    of-type character across code
    and current-position of-type fixnum    from   0 by 1
    
    if (char= current-token #\0) do
      (format T "1")
    else if (char= current-token #\1) do
      (format T "0")
    else do
      (error "The identifier \"~c\" at position ~d is invalid."
        current-token current-position)
    end)
  (values))