Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

75%
+4 −0
Challenges Reverse an ASCII string

Shakespeare Programming Language, 184 bytes ,.Ajax,.Puck,.Act I:.Scene I:.[Enter Ajax and Puck]Scene V:.Puck:Open mind!Be you worse zero?If soLet usScene L!Remember you!Let usScene V!Scene L:.Puck...

posted 4y ago by Corsaka‭

Answer
#1: Initial revision by user avatar Corsaka‭ · 2020-12-03T10:35:55Z (almost 4 years ago)
# [Shakespeare Programming Language], 184 bytes

    ,.Ajax,.Puck,.Act I:.Scene I:.[Enter Ajax and Puck]Scene V:.Puck:Open mind!Be you worse zero?If soLet usScene L!Remember you!Let usScene V!Scene L:.Puck:Recall!Speak thy!Let usScene L!

Surprisingly short for SPL. Errors out with a runtime.

Adds input to the stack, then recalls it. Since SPL handles one character at a time, this automatically reverses the input. SPL also has a built-in function, where if there is no input, it will return `-1`, which allows us to see the end of input.

[Try it online!][TIO-ki8pa3l7]

[Shakespeare Programming Language]: https://github.com/TryItOnline/spl
[TIO-ki8pa3l7]: https://tio.run/##VY5BDoIwFESvMt0TDsDGaOKChEQDho1xUcpHkNKStoh4eSzCQpO/mPx5Mxnby3kOwv2Dv4LwPIjWa@EQR2EmSNEirkflyGBBwFWJhbqtbh59M9GpJ4WuUSU7ECY9YNTGEt5k9C6uYHVCDoNdQwlLqaOu8J0eZb9WzjZk601JcClZ1hNv4eqJ/ffM86VuLPxxWGcadYeuIGpuuPCTrY9wh7GREgXB0NP/qAw/ "Shakespeare Programming Language – Try It Online"