Last active
August 29, 2015 14:19
-
-
Save oprypin/7e4a445f5c64ef658d2d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
%if false: | |
echo 5 | |
echo "a" | |
echo "lol" | |
for i in 0..10: | |
%if true: | |
echo 6 | |
echo 8 | |
for c in "hello world": | |
case c | |
%for c in 'a'..'z': | |
of '{{c}}': | |
%for i in 1..2: | |
echo '{{chr(ord(c)+i)}}' | |
else: | |
discard | |
%if true: | |
echo "lol" |
This file contains hidden or 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
proc nimceptionResult(): string {.compiletime.} = | |
result = "" | |
if false: | |
result.add "echo 5\n" | |
result.add "echo \"a\"\n" | |
result.add "echo \"lol\"\n" | |
result.add "for i in 0..10:\n" | |
if true: | |
result.add " echo 6\n" | |
result.add " echo 8\n" | |
result.add "\n" | |
result.add "\n" | |
result.add "for c in \"hello world\":\n" | |
result.add " case c\n" | |
for c in 'a'..'z': | |
result.add " of '"& $(c) &"':\n" | |
for i in 1..2: | |
result.add " echo '"& $(chr(ord(c)+i)) &"'\n" | |
result.add " else:\n" | |
result.add " discard\n" | |
result.add "\n" | |
if true: | |
result.add "echo \"lol\"\n" |
This file contains hidden or 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
echo "lol" | |
for i in 0..10: | |
echo 6 | |
echo 8 | |
for c in "hello world": | |
case c | |
of 'a': | |
echo 'b' | |
echo 'c' | |
of 'b': | |
echo 'c' | |
echo 'd' | |
of 'c': | |
echo 'd' | |
echo 'e' | |
of 'd': | |
echo 'e' | |
echo 'f' | |
of 'e': | |
echo 'f' | |
echo 'g' | |
of 'f': | |
echo 'g' | |
echo 'h' | |
of 'g': | |
echo 'h' | |
echo 'i' | |
of 'h': | |
echo 'i' | |
echo 'j' | |
of 'i': | |
echo 'j' | |
echo 'k' | |
of 'j': | |
echo 'k' | |
echo 'l' | |
of 'k': | |
echo 'l' | |
echo 'm' | |
of 'l': | |
echo 'm' | |
echo 'n' | |
of 'm': | |
echo 'n' | |
echo 'o' | |
of 'n': | |
echo 'o' | |
echo 'p' | |
of 'o': | |
echo 'p' | |
echo 'q' | |
of 'p': | |
echo 'q' | |
echo 'r' | |
of 'q': | |
echo 'r' | |
echo 's' | |
of 'r': | |
echo 's' | |
echo 't' | |
of 's': | |
echo 't' | |
echo 'u' | |
of 't': | |
echo 'u' | |
echo 'v' | |
of 'u': | |
echo 'v' | |
echo 'w' | |
of 'v': | |
echo 'w' | |
echo 'x' | |
of 'w': | |
echo 'x' | |
echo 'y' | |
of 'x': | |
echo 'y' | |
echo 'z' | |
of 'y': | |
echo 'z' | |
echo '{' | |
of 'z': | |
echo '{' | |
echo '|' | |
else: | |
discard | |
echo "lol" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment