hy/hy/lang/symbol.py

11 lines
218 B
Python
Raw Normal View History

2012-12-17 16:01:02 +01:00
from hy.lang.string import HYString
2012-12-16 22:52:52 +01:00
2012-12-17 16:01:02 +01:00
class HYSymbol(HYString):
2012-12-16 22:52:52 +01:00
def __init__(self, string):
self += string
2012-12-19 01:02:50 +01:00
def eval(self, lns, *args, **kwargs):
obj = self.lookup(lns, self)
2012-12-18 15:11:42 +01:00
return obj