Example #1
0
 def semantics(self, match):
     movie = IsMovie() + HasActor(match.actor)
     movie_name = NameOf(movie)
     return movie_name, "enum"
Example #2
0
 def semantics(self, match):
     movie = IsMovie()
     name = NameOf(movie)
     return name, "enum"
Example #3
0
    def semantics(self, match):
        movie = IsMovie() + DirectedBy(match.director)
        movie_name = LabelOf(movie)

        return movie_name, "enum"
Example #4
0
 def semantics(self, match):
     name = match.words.tokens
     return IsMovie() + HasName(name)