Last active
September 18, 2015 20:59
-
-
Save erikrose/7853084a562b3bce90cf 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
if is_yak then | |
shave yak | |
bathe yak | |
else | |
do productive_work | |
--> (if is_yak then | |
((shave yak) | |
(bathe yak)) | |
else | |
((do productive_work)) | |
) | |
for yak in yaks first | |
print "Here are some yaks:" | |
then | |
print yak | |
last | |
print "And that's all the yaks!" | |
empty | |
print "I'm afraid there are no yaks." | |
if is_yak then | |
shave yak | |
elif is_gerbil then | |
preen gerbil | |
else | |
cheer | |
# One possible way to parse this: | |
sentences = sentence+ # starting point | |
sentence = line blocks? | |
line = word+ newline | |
blocks = indent sentences other_blocks? outdent | |
other_blocks = partial_outdent other_block+ | |
other_block = line indent sentences outdent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment