Last active
April 21, 2017 01:54
-
-
Save MDFL64/72db799faeeadc8b233e0e2a61e4c201 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(import lua/basic) | |
(import lua/string) | |
(import lua/io) | |
(let* [(bytecode (lua/string/dump (call lua/basic/_G :loadstring (lua/io/read "*all")))) | |
(i 1) | |
(read-string (lambda (len) | |
(let* [(i' (+ i len)) | |
(res (self bytecode :sub i (- i' 1)))] | |
(set! i i') | |
res)))] | |
(print! (= (read-string 3) "\x1BLJ"))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment