21 lines
444 B
Python
Raw Normal View History

2012-01-28 14:52:09 +00:00
"""
Statement Node
Copyright (c)
See LICENSE for details.
<jtm@robot.is>
"""
from .process import Process
class Statement(Process):
format = "%(identifier)s %(value)s;%(nl)s"
2012-01-28 14:52:09 +00:00
def parse(self, scope):
""" Parse Node
@param list: current scope
"""
self._ident = self._p[1].strip()
self.parsed['identifier'] = self._ident
self.parsed['value'] = self._p[2]