2 from parser import TagsSemantics as _TagsSemantics
4 class TagsSemantics(_TagsSemantics):
5 def or_expression(self, ast):
6 return ('OR', ast[0], ast[2])
8 def and_expression(self, ast):
9 return ('AND', ast[0], ast[2])
11 def not_expression(self, ast):
12 return ('NOT', ast[1])
14 def parens_expression(self, ast):
15 return ('PARENS', ast[1])
18 return ('NAME', str(ast))
20 def and_op(self, ast):
26 def not_op(self, ast):