나는이 질문에 2D 접근을하기로 결정했다. 그렇다. 7 개의 2D esolang이있다!
BlueEyedBeast의 답변 (Foo, GolfScript)이 추가 할 추가 언어에 대한 영감을 얻었습니다.
<ESC>Escape 의 문자 리터럴입니다 .
#>!>\'n\'r\'o\'c\,,,,,@'s'a'l'a'dJ,é'g'n+'i+'s+'s+'e+'r+'d+.ó[-]+[----->+++<]>.+++++++++++.+++[->+++<]>++.+[--->+<]>.+++H'turkey'~;oooooooo'sweettea.0-5++++++++fffffffff''`'
# >99*d1+c3-c89*4+dcc99*2+c!|$l9D3-O93++dOO8+O1+O1-O5+OO1+O95++O.
# >'p'()'u'()'m'()'p'()'k'()'i'()'n'()'p'()'i'()'e'()\
print'biscuits';'pecanpie'#"stuffing"R'c!'o!'r!'n!'b!'r!'e!'a!'d!*<ESC>ddddddSapplepie
베 펀지 -98
#?!> nothing important
'n push 'n'
STACK: [110]
\ swap top two stack values (TBH, I'm not really sure what happens in this case)
STACK: [110, 0]
'r\'o\'c\ repeat the same for other characters
STACK: [110 114 111 99 0]
,,,,, output the next 5 top stack values, "corn"
@ end program
rest of the code is irrelevant
since program has already stopped
온라인으로 사용해보십시오! 출력corn
> <>
명령은 표시된 순서대로 표시됩니다
enter from the left, direction = right
# mirror, now the direction will change to left
and it wraps around and comes to the right
and reads code from the right to the left
'`' push this
' ... 5-0.aetteews' push this too
oooooooo outputs the top 5 characters of the stack
; end program
온라인으로 사용해보십시오! (복사 및 붙여 넣기 만) 출력sweettea
V
...<ESC> writes stuff over three lines and enters normal mode
ddddddS deletes 3 lines, delete another line and enter insert mode
applepie writes "applepie"
온라인으로 사용해보십시오! 출력 applepie(~ 20 초가 소요될 수 있음)
파이썬 2
# first two lines are comments
print"biscuits"; # prints "biscuits" and ends statement
'pecanpie' # dangling (and ignored) string literal
온라인으로 사용해보십시오! (복사 및 붙여 넣기 만) 출력biscuits
05AB1E
#>!> # does nothing important
\'n\ # push 'n' and delete it
'r\'o\'c\ # repeat for other characters
,,,,, # prints 5 times (since there is nothing in stack,
# prints nothing)
@ # push the index of the top of stack
's'a'l'a'd # push these characters
J, # join them and print them out
# the rest of the code does not matter
# since there is no implicit print
# because we used the print statement
온라인으로 사용해보십시오! 출력salad
골> <>
명령은 표시된 순서대로 표시됩니다
enter from the left, direction = right
# mirror, now the direction changes to left
and it wraps around and comes to the right
and reads code from the right to the left
' starting parsing strings
` escape next character
' gets escaped
" stop string parsing
fffffffff pushes 15, 8 times
++++++++ adds up the numbers, resulting in 135
5- subtract 4 from it, 130
0 pushes 0
0 jumps to (130, 0)
#\'n\'r\'o\'c\,,,,,@'r'o'l'l'sJ, ... H'turkey'~;oooooooo"sweettea.0-5++++++++fffffffff""`"
^
we are here now
˜ removes value at top of stack, '"'
"yekrut" push this string
H Output stack as characters and halt program
온라인으로 사용해보십시오! 출력turkey
푸
Foo는 큰 따옴표로 무엇이든 출력하므로 다른 언어에서는 큰 따옴표를 사용하지 않도록주의를 기울였습니다. 때문에 "stuffing"큰 따옴표로, 그것은이 인쇄됩니다.
온라인으로 사용해보십시오! 출력 stuffing후 오류가 있습니다
건초 더미 (2015)
최신 버전이 유효하지 않으므로 Haystack의 2015 (2016이 아닌) 인터프리터를 사용합니다. 이에 대한 해석은 haystack.py하고 있지 haystack_new.py
명령은 표시된 순서대로 표시됩니다
# ignored
\ reflection (now it moves downwards)
> set direction to right
99*d1+c Output 'R'
3-c Output 'O'
89*4+dcc Outputs 'L', newline, 'L'
99*2+c!| Outputs 'S' and ends the program
Note: '!' is ignored by the interpreter
이 프로그램은 출력
R
O
L
L
S
이 출력 후 줄 바꿈 (이봐, 공백은 중요하지 않습니다!)
GolfScript
first 2 lines are comments
print'biscuits'; pushes "biscuits" to the stack and discards it
'pecanpie' push this
#... comment
implicit output
온라인으로 사용해보십시오! 출력pecanpie
BF
https://copy.sh/brainfuck/text.html 을 사용 하여 텍스트를 BF로 변환했습니다. 많은 ,입력 명령문 이 있지만 BF 코드는 독립적으로 실행됩니다.
온라인으로 사용해보십시오! 출력gravy
분열
핵분열 프로그램이 시작 되려면 원자가 생성되어야합니다. 우리는 이것이 세 번째 줄에서 일어나는 것을 봅니다.
..."stuffing" Blah blah blah
R Spawns an atom with direction right
'c Gives the atom the mass of 'c''s ASCII value
! Print the atom's mass
'o!'r!'n!'b!'r!'e!'a!'d! Do the same for other characters
* Destroy atom, end program
온라인으로 사용해보십시오! 출력cornbread
Minkolang v0.15
# Doesn't really do anything
\ Reflect, moves downwards
> Changes direction to right
... !| Does stuff in stack, '!' ignores the '|'
$l9D3 ... ++O Uses ASCII character codes to print "applecider"
. Ends program
온라인으로 사용해보십시오! 출력applecider
진지하게
é - clear stack
'g'n+'i+'s+'s+'e+'r+'d+ - load chars onto stack
. - print stack
ó - exit
온라인으로 사용해보십시오! 출력dressing
악소
(명령은 순서대로 표시됩니다)
#> blah blah
! rotate direction 90 degrees clockwise
> go right
'p'() push char and output
'u'() ... 'e'() repeat for other characters
\ end program
온라인으로 사용해보십시오! 출력pumpkinpie