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

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