예제 #1
0
    def interpret(self, match):
        #print(dir(match), match.director, match.words)
        movie = IsMovie() + DirectedBy(match.director)

        movie_name = NameOf(movie)
        print(movie_name)
        return movie_name, "enum"
예제 #2
0
    def interpret(self, match):
        _director, i, j = match.director
        movie = IsMovie() + DirectedBy(_director)
        movie_name = LabelOf(movie)

        return movie_name, ReturnValue(i, j)
예제 #3
0
    def interpret(self, match):
        movie = IsMovie() + DirectedBy(match.director)
        movie_name = LabelOf(movie)

        return movie_name, "enum"