Skip to main content
added 15 characters in body
Source Link
MD XF
  • 13.9k
  • 4
  • 66
  • 104

SimpleStackImplicit on TIO, 66 4 bytes

(.%@9)

This requires that the input box on TIO is empty.

(.%@9)
(....)   « loop while top of stack truthy                       »;
 .     «  increment top of stack (read input if stack empty)  »;
  %    «  print
  integer  @9    output HTAB (decimal 9)

SimpleStack, 8 7 bytes

1(%@9.)
1        push 1 (only works at start of program)
 (....)  infinite loop
  %       print top of stack»;
   @9ß   «  print tabspace                                         »;
     .  « just incrementkidding, loop forever                           »;

Try it online!

SimpleStack on TIO, 6 bytes

(.%@9)

This requires that the input box on TIO is empty.

(.%@9)
(....)  loop while top of stack truthy
 .       increment top of stack (read input if stack empty)
  %      print
    @9    output HTAB (decimal 9)

SimpleStack, 8 7 bytes

1(%@9.)
1        push 1 (only works at start of program)
 (....)  infinite loop
  %       print top of stack
   @9     print tab
     .    increment

Implicit on TIO, 6 4 bytes

(.

This requires that the input box on TIO is empty.

(.
(...   « loop while top of stack truthy                       »;
 .     «  increment top of stack (read input if stack empty)  »;
  %    «  print integer                                       »;
   ß   «  print space                                         »;
       « just kidding, loop forever                           »;

Try it online!

deleted 12 characters in body
Source Link
MD XF
  • 13.9k
  • 4
  • 66
  • 104

SimpleStack on TIO, 6 bytes

(.%@9)

This requires that the input box on TIO is empty.

(.%@9)
(....)  loop while top of stack truthy
 .       increment top of stack (read input if stack empty)
  %      print
   @9    output HTAB (decimal 9)

SimpleStack, 88 7 bytes

:1(%@9.)

I really need a better way to push ints...

:1        push 1
  (only works at start of program)
 (....)  infinite loop
   %       print top of stack
    @9     print tab
      .    increment

SimpleStack on TIO, 6 bytes

(.%@9)

This requires that the input box on TIO is empty.

(.%@9)
(....)  loop while top of stack truthy
 .       increment top of stack (read input if stack empty)
  %      print
   @9    output HTAB (decimal 9)

SimpleStack, 8 bytes

:1(%@9.)

I really need a better way to push ints...

:1        push 1
   (....)  infinite loop
   %       print top of stack
    @9     print tab
      .    increment

SimpleStack on TIO, 6 bytes

(.%@9)

This requires that the input box on TIO is empty.

(.%@9)
(....)  loop while top of stack truthy
 .       increment top of stack (read input if stack empty)
  %      print
   @9    output HTAB (decimal 9)

SimpleStack, 8 7 bytes

1(%@9.)
1        push 1 (only works at start of program)
 (....)  infinite loop
  %       print top of stack
   @9     print tab
     .    increment
Source Link
MD XF
  • 13.9k
  • 4
  • 66
  • 104

SimpleStack on TIO, 6 bytes

(.%@9)

This requires that the input box on TIO is empty.

(.%@9)
(....)  loop while top of stack truthy
 .       increment top of stack (read input if stack empty)
  %      print
   @9    output HTAB (decimal 9)

SimpleStack, 8 bytes

:1(%@9.)

I really need a better way to push ints...

:1        push 1
  (....)  infinite loop
   %       print top of stack
    @9     print tab
      .    increment