summaryrefslogtreecommitdiffstats
path: root/awlblocks.py
blob: 1c0612d8fbae53b6a1264680c650ad3fd9d1bdc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- coding: utf-8 -*-
#
# AWL simulator - blocks
# Copyright 2012 Michael Buesch <m@bues.ch>
#
# Licensed under the terms of the GNU General Public License version 2.
#

from awllabels import *
from util import *


class Block(object):
	def __init__(self, insns):
		self.insns = insns
		self.labels = None
		if insns:
			self.labels = AwlLabel.resolveLabels(insns)

class OB(Block):
	def __init__(self, insns):
		Block.__init__(self, insns)

class FB(Block):
	def __init__(self, insns):
		Block.__init__(self, insns)

class SFB(Block):
	def __init__(self):
		Block.__init__(self, None)

class FC(Block):
	def __init__(self, insns):
		Block.__init__(self, insns)

class SFC(Block):
	def __init__(self):
		Block.__init__(self, None)
bues.ch cgit interface