Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

Whitespace, (削除) 311 (削除ここまで) (削除) 150 (削除ここまで) (削除) 77 (削除ここまで) (削除) 68 (削除ここまで) (削除) 65 (削除ここまで) (削除) 46 (削除ここまで) (削除) 41 (削除ここまで) 38 bytes

-3 bytes thanks to Kevin Cruijssen
-27 bytes thanks to Ephphatha


  
   	 	 
 
  
 	
	 			
	  
	
  
 

Try it online!

A visible format

'\n \n \t \t \n \n \n \t\n\t \t\t\t\n\t \n\t\n \n \n\n'

Explanation (s = space, t = tab, n = new line)

nssn # label(NULL) - loop start
ssststsn # push 10 in the stack -> [10]
sns # duplicate the top of the stack -> [10, 10]
sns # duplicate the top of the stack -> [10, 10, 10]
tnts # read a single char from input, pop the stack and store at that address -> [10, 10] [10:<char that was read>]
ttt # pop the stack and put the value at that adress on stack -> [10,<char>] [10:<char>]
ntssn # jump to label(0) - since label(0) is not defined, the interpreter jumps to the end of the program - if the top of the stack (char) is 0 -> [10] [10:<char>]
tnss # pop the top of the stack and print as ascii -> [] [10:<char>]
nsnn # go back to the label(NULL)

Whitespace, (削除) 311 (削除ここまで) (削除) 150 (削除ここまで) (削除) 77 (削除ここまで) (削除) 68 (削除ここまで) (削除) 65 (削除ここまで) (削除) 46 (削除ここまで) (削除) 41 (削除ここまで) 38 bytes

-3 bytes thanks to Kevin Cruijssen
-27 bytes thanks to Ephphatha


  
   	 	 
 
  
 	
	 			
	  
	
  
 

Try it online!

A visible format

'\n \n \t \t \n \n \n \t\n\t \t\t\t\n\t \n\t\n \n \n\n'

Explanation (s = space, t = tab, n = new line)

nssn # label(NULL) - loop start
ssststsn # push 10 in the stack -> [10]
sns # duplicate the top of the stack -> [10, 10]
sns # duplicate the top of the stack -> [10, 10, 10]
tnts # read a single char from input, pop the stack and store at that address -> [10, 10] [10:<char that was read>]
ttt # pop the stack and put the value at that adress on stack -> [10,<char>] [10:<char>]
ntssn # jump to label(0) - since label(0) is not defined, the interpreter jumps to the end of the program - if the top of the stack (char) is 0 -> [10] [10:<char>]
tnss # pop the top of the stack and print as ascii -> [] [10:<char>]
nsnn # go back to the label(NULL)

Whitespace, (削除) 311 (削除ここまで) (削除) 150 (削除ここまで) (削除) 77 (削除ここまで) (削除) 68 (削除ここまで) (削除) 65 (削除ここまで) (削除) 46 (削除ここまで) (削除) 41 (削除ここまで) 38 bytes

-3 bytes thanks to Kevin Cruijssen
-27 bytes thanks to Ephphatha


  
   	 	 
 
  
 	
	 			
	  
	
  
 

Try it online!

A visible format

'\n \n \t \t \n \n \n \t\n\t \t\t\t\n\t \n\t\n \n \n\n'

Explanation (s = space, t = tab, n = new line)

nssn # label(NULL) - loop start
ssststsn # push 10 in the stack -> [10]
sns # duplicate the top of the stack -> [10, 10]
sns # duplicate the top of the stack -> [10, 10, 10]
tnts # read a single char from input, pop the stack and store at that address -> [10, 10] [10:<char that was read>]
ttt # pop the stack and put the value at that adress on stack -> [10,<char>] [10:<char>]
ntssn # jump to label(0) - since label(0) is not defined, the interpreter jumps to the end of the program - if the top of the stack (char) is 0 -> [10] [10:<char>]
tnss # pop the top of the stack and print as ascii -> [] [10:<char>]
nsnn # go back to the label(NULL)
deleted 87 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89

Whitespace, (削除) 311 (削除ここまで) (削除) 150 (削除ここまで) (削除) 77 (削除ここまで) (削除) 68 (削除ここまで) (削除) 65 (削除ここまで) (削除) 46 (削除ここまで) 41(削除) 41 (削除ここまで) 38 bytes

-3 bytes thanks to Kevin Cruijssen
-2427 bytes thanks to Ephphatha

   	 	 

  
   	 	 
 
 	  
	   	
 				 			
	  
 
 		
  
 

Try it online! Try it online!

A visible format

''\n  \n \t \t \n\n \t \n \n \t\n\t  \n \t\t\t\n\t \t\n\t \n\t\t\t\n\t \n \t\n\n\t\n \n \n\n'

Explanation (s = space, t = tab, n = new line)

nssn # label(NULL) - loop start
ssststsn # push 10 in the stack -> [10]
nssnsns  # label(NULL)duplicate the top of the stack -> loop[10, start10]
sns # duplicate the top of the stack -> [10, 10, 10]
tnts # read a single char from input, pop the stack and store at that address -> [10, 10] [10:<char that was read>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
ttt # pop the stack and put the value at that adress on stack -> [10,<char>] [10:<char>]
ntssn # jump to label(0) - since label(0) is not defined, the interpreter jumps to the end of the program - if the top of the stack (char) is 0 -> [10] [10:<char>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
tnss # pop the top of the stack and print as ascii -> [10][] [10:<char>]
nsnn # go back to the label(NULL)

Whitespace, (削除) 311 (削除ここまで) (削除) 150 (削除ここまで) (削除) 77 (削除ここまで) (削除) 68 (削除ここまで) (削除) 65 (削除ここまで) (削除) 46 (削除ここまで) 41 bytes

-3 bytes thanks to Kevin Cruijssen
-24 bytes thanks to Ephphatha

   	 	 

  
 
 	
	  
 			
	  
 
 	
  
 

Try it online!

A visible format

' \t \t \n\n  \n \n \t\n\t  \n \t\t\t\n\t \n \n \t\n \n \n\n'

Explanation (s = space, t = tab, n = new line)

ssststsn # push 10 in the stack -> [10]
nssn # label(NULL) - loop start
sns # duplicate the top of the stack -> [10, 10]
tnts # read a single char from input, pop the stack and store at that address -> [10, 10] [10:<char that was read>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
ttt # pop the stack and put the value at that adress on stack -> [10,<char>] [10:<char>]
ntssn # jump to label(0) - since label(0) is not defined, the interpreter jumps to the end of the program - if the top of the stack (char) is 0 -> [10] [10:<char>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
tnss # pop the top of the stack and print as ascii -> [10] [10:<char>]
nsnn # go back to the label(NULL)

Whitespace, (削除) 311 (削除ここまで) (削除) 150 (削除ここまで) (削除) 77 (削除ここまで) (削除) 68 (削除ここまで) (削除) 65 (削除ここまで) (削除) 46 (削除ここまで) (削除) 41 (削除ここまで) 38 bytes

-3 bytes thanks to Kevin Cruijssen
-27 bytes thanks to Ephphatha


  
   	 	 
 
  
 	
	 			
	  
	
  
 

Try it online!

A visible format

'\n  \n \t \t \n \n \n \t\n\t \t\t\t\n\t \n\t\n \n \n\n'

Explanation (s = space, t = tab, n = new line)

nssn # label(NULL) - loop start
ssststsn # push 10 in the stack -> [10]
sns  # duplicate the top of the stack -> [10, 10]
sns # duplicate the top of the stack -> [10, 10, 10]
tnts # read a single char from input, pop the stack and store at that address -> [10, 10] [10:<char that was read>]
ttt # pop the stack and put the value at that adress on stack -> [10,<char>] [10:<char>]
ntssn # jump to label(0) - since label(0) is not defined, the interpreter jumps to the end of the program - if the top of the stack (char) is 0 -> [10] [10:<char>]
tnss # pop the top of the stack and print as ascii -> [] [10:<char>]
nsnn # go back to the label(NULL)
added 19 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89

Whitespace, (削除) 311 (削除ここまで) (削除) 150 (削除ここまで) (削除) 77 (削除ここまで) (削除) 68 (削除ここまで) (削除) 65 (削除ここまで) 46(削除) 46 (削除ここまで) 41 bytes

-3 bytes thanks to Kevin Cruijssen
-1924 bytes thanks to Ephphatha

   	 	 
     
 
 	
	  
 			
	 	  
 
 	
  
 
 
  

Try it online! Try it online!

A visible format

' \t \t \n\n \n \n \t\n\t \n \t\t\t\n\t \n \n \t\n \n \n \n\n \n'\n\n'

Explanation (s = space, t = tab, n = new line)

ssststsn # push 10 in the stack -> [10]
nsssnnssn  # label(0NULL) - loop start
sns # duplicate the top of the stack -> [10, 10]
tnts # read a single char from input, pop the stack and store at that address -> [10, 10] [10:<char that was read>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
ttt # pop the stack and put the value at that adress on stack -> [10,<char>] [10:<char>]
ntsn ntssn # jump to label(NULL0) - since label(bottom0) is not defined, the interpreter jumps to the end of the program) - if the top of the stack (char) is 0 -> [10] [10:<char>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
tnss # pop the top of the stack and print as ascii -> [10] [10:<char>]
nsnsnnsnn  # go back to the label(0)
nssn # label(NULL)

Whitespace, (削除) 311 (削除ここまで) (削除) 150 (削除ここまで) (削除) 77 (削除ここまで) (削除) 68 (削除ここまで) (削除) 65 (削除ここまで) 46 bytes

-3 bytes thanks to Kevin Cruijssen
-19 bytes thanks to Ephphatha

   	 	 
   
 
 	
	  
 			
	 
 
 	
  
 
 
  

Try it online!

A visible format

' \t \t \n\n \n \n \t\n\t \n \t\t\t\n\t \n \n \t\n \n \n \n\n \n'

Explanation (s = space, t = tab, n = new line)

ssststsn # push 10 in the stack -> [10]
nsssn # label(0) - loop start
sns # duplicate the top of the stack -> [10, 10]
tnts # read a single char from input, pop the stack and store at that address -> [10, 10] [10:<char that was read>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
ttt # pop the stack and put the value at that adress on stack -> [10,<char>] [10:<char>]
ntsn  # jump to label(NULL) (bottom of the program) if the top of the stack (char) is 0 -> [10] [10:<char>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
tnss # pop the top of the stack and print as ascii -> [10] [10:<char>]
nsnsn # go back to the label(0)
nssn # label(NULL)

Whitespace, (削除) 311 (削除ここまで) (削除) 150 (削除ここまで) (削除) 77 (削除ここまで) (削除) 68 (削除ここまで) (削除) 65 (削除ここまで) (削除) 46 (削除ここまで) 41 bytes

-3 bytes thanks to Kevin Cruijssen
-24 bytes thanks to Ephphatha

   	 	 
  
 
 	
	  
 			
	  
 
 	
  
 

Try it online!

A visible format

' \t \t \n\n \n \n \t\n\t \n \t\t\t\n\t \n \n \t\n \n \n\n'

Explanation (s = space, t = tab, n = new line)

ssststsn # push 10 in the stack -> [10]
nssn  # label(NULL) - loop start
sns # duplicate the top of the stack -> [10, 10]
tnts # read a single char from input, pop the stack and store at that address -> [10, 10] [10:<char that was read>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
ttt # pop the stack and put the value at that adress on stack -> [10,<char>] [10:<char>]
ntssn # jump to label(0) - since label(0) is not defined, the interpreter jumps to the end of the program - if the top of the stack (char) is 0 -> [10] [10:<char>]
sns # duplicate the top of the stack -> [10, 10] [10:<char>]
tnss # pop the top of the stack and print as ascii -> [10] [10:<char>]
nsnn  # go back to the label(NULL)
deleted 163 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
deleted 41 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
deleted 11 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
added 1054 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
deleted 3 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
deleted 268 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
deleted 518 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
deleted 2418 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
added 73 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
added 1 character in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
added 1249 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
added 1249 characters in body
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading
Source Link
Rod
  • 18.6k
  • 4
  • 32
  • 89
Loading

AltStyle によって変換されたページ (->オリジナル) /