Created
December 11, 2014 12:37
-
-
Save mrdaemon/ce4e288d0a04dfa49b79 to your computer and use it in GitHub Desktop.
more shit tokens
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
| >>> for line in teststrings: print line | |
| bob in 28 seconds to mow the lawn | |
| jack and jill in 3 days to go fuck themselves | |
| jack, jill and dr_seuss to eat a dick in 3 days | |
| robert, mike and claire about that shovel in my trunk in 28 years | |
| robert, mike, douche, and oxford_comma to write about lawns to mow in 30 minutes | |
| something that's really fucked | |
| me to huarghh nnngggghhh | |
| me to huarghh nnngggghhh in fobbledeebob | |
| me in 30 minutes | |
| >>> for line in teststrings: | |
| try: | |
| tokenize(line) | |
| except ReminderSyntaxError as err: | |
| print "I don't understand: %s" % (err.message) | |
| {'message': 'mow the lawn', 'recipient': 'bob', 'time': '28 seconds'} | |
| {'message': 'go fuck themselves', 'recipient': 'jack and jill', 'time': '3 days'} | |
| {'message': 'eat a dick', 'recipient': 'jack, jill and dr_seuss', 'time': '3 days'} | |
| {'message': 'that shovel', 'recipient': 'robert, mike and claire', 'time': '28 years'} | |
| {'message': 'write about lawns to mow', 'recipient': 'robert, mike, douche, and oxford_comma', 'time': '30 minutes'} | |
| I don't understand: Remind Who? | |
| I don't understand: Remind when? | |
| I don't understand: Remind when? | |
| I don't understand: Remind what..? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment