@action(Rule("<STR_LIT>"))<EOL><INDENT>def comparison(self, lhs, rhs):<DEDENT>
if len(rhs) > <NUM_LIT:0>:<EOL><INDENT>return ast.Compare(left=lhs, ops=list(map(lambda x: x[<NUM_LIT:0>], rhs)),<EOL>comparators=list(map(lambda x: x[<NUM_LIT:1>], rhs)),<EOL>loc=lhs.loc.join(rhs[-<NUM_LIT:1>][<NUM_LIT:1>].loc))<EOL><DEDENT>else:<EOL><INDENT>return lhs<EOL><DEDENT>
(2.6, 2.7) comparison: expr (comp_op expr)*
(3.0, 3.1) comparison: star_expr (comp_op star_expr)*
(3.2-) comparison: expr (comp_op expr)*