def __init__(self,
bit_name,
instance,
position_count,
nonterminal_adder,
nonterminal_instance=0):
self.bit_name = bit_name
# number of the first bit of this run
self.bit_instance = instance
# length of this run of bits
self.length = 1
self.position_count = position_count
self.position_nonterminal_adders = nonterminal_adder
# for nonterminals, the nonterminal_instance says the numeric id
# of this sub-nonterminal in the current nonterminal. If there
# are 4 sub-nonterminals in a nonterminal, they are numbered 0
# to 3. This index is used to index in to the nonterminal storage
# associated with the current nonterminal.
self.nonterminal_instance = 0
评论列表
文章目录