Beispiel #1
0
 def interpret(self, match):
     name = match.words.tokens
     return IsBook() + HasKeyword(name)
Beispiel #2
0
 def interpret(self, match):
     book = IsBook() + HasAuthor(match.author)
     book_name = NameOf(book)
     return book_name, "enum"
Beispiel #3
0
 def interpret(self, match):
     _author, i, j = match.author
     book = IsBook() + HasAuthor(_author)
     book_name = NameOf(book)
     return book_name, ReturnValue(i, j)