# -*- coding: utf-8 -*-
class Visitor(object):
def visitCompare(self, node):
for child in node.getChildNodes(): self.visit(child)
print 'ひだまりスケッチx365', self.const
def visitConst(self, node): self.const = node.value
from compiler import parse, walk
walk(parse("""
X / _ / X < "来週も見てくださいね!"
"""), Visitor())