Exemplo n.º 1
0
 def interpret(self, match):
     _movie, i, j = match.movie
     duration = DurationOf(_movie)
     return duration, ReturnValue(i, j)
Exemplo n.º 2
0
 def interpret(self, match):
     duration = DurationOf(match.movie)
     print(duration.__dict__)
     return duration, ("literal", "{} minutes long")
Exemplo n.º 3
0
 def interpret(self, match):
     duration = DurationOf(match.movie)
     duration.tables = ["movies"]
     return duration, ("literal", "{} minutes long")