ambrosiaforest@lemmy.blahaj.zone to 196@lemmy.blahaj.zone · 7 months agofixed rulelemmy.blahaj.zoneimagemessage-square102fedilinkarrow-up1621arrow-down10file-text
arrow-up1621arrow-down1imagefixed rulelemmy.blahaj.zoneambrosiaforest@lemmy.blahaj.zone to 196@lemmy.blahaj.zone · 7 months agomessage-square102fedilinkfile-text
minus-squareJackLSauce@lemmy.worldlinkfedilinkarrow-up18·7 months agoThat’s not Lisp… (while (== x y) (func1) (func2) )
minus-squarekryptonianCodeMonkey@lemmy.worldlinkfedilinkarrow-up15·7 months ago(((((Not(enough)))((parentheses)))))
minus-squareSuperb@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up7·7 months agoNo syntax, only parentheses
minus-square7heo@lemmy.mllinkfedilinkarrow-up1·edit-26 months agoHear me out: brainfuck, but with parentheses only. > ))) < ((( + ()) - (() . ()( , )() [ )(( ] ))( Hello world example: ()))(((()(())))(())(())))))()))))(() (()(()(()(()(((((())(((((()(()((((() (()(()))()))(()()()))))))))())()())) )))()(()(())())()))((()()))))((((((( ((((((()(())())())()((()(()(()(()(() (()()((((((((()()())))))))))))())()( Python transpiler: #!/usr/bin/env python """Lipsfuck to brainfuck transpiler""" from sys import stdin OPS = {")))": '>', "(((": '<', "())": '+', "(()": '-', "()(": '.', ")()": ',', ")((": '[', "))(": ']'} def main(): """Obvious main procedure""" _d = ''.join(stdin.readlines()).rstrip('\n') for _op in [_d[x:x+3] for x in range(0, int(len(_d)), 3)]: print(OPS[_op], end='') print() if __name__ == "__main__": main()
minus-squareflamingos-cant@ukfli.uklinkfedilinkEnglisharrow-up8·7 months agoWhat kind of monster writes lisp with the closing bracket on its own line.
That’s not Lisp…
(((((Not(enough)))((parentheses)))))
No syntax, only parentheses
Hear me out: brainfuck, but with parentheses only.
Hello world example:
Python transpiler:
#!/usr/bin/env python """Lipsfuck to brainfuck transpiler""" from sys import stdin OPS = {")))": '>', "(((": '<', "())": '+', "(()": '-', "()(": '.', ")()": ',', ")((": '[', "))(": ']'} def main(): """Obvious main procedure""" _d = ''.join(stdin.readlines()).rstrip('\n') for _op in [_d[x:x+3] for x in range(0, int(len(_d)), 3)]: print(OPS[_op], end='') print() if __name__ == "__main__": main()
What kind of monster writes lisp with the closing bracket on its own line.