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