173
174
175
176
177
178
179
180
181
182
183
|
if type(arc) == str and arc.startswith("~"):
dRegex[arc[1:]] = oNode.__hash__()
else:
dNode[arc] = oNode.__hash__()
if dRegex:
dNode["<regex>"] = dRegex
if self.bFinal:
dNode["<final>"] = ""
if self.bInfo:
dNode["<info>"] = ""
return dNode
|
|
|
|
173
174
175
176
177
178
179
180
181
182
183
|
if type(arc) == str and arc.startswith("~"):
dRegex[arc[1:]] = oNode.__hash__()
else:
dNode[arc] = oNode.__hash__()
if dRegex:
dNode["<regex>"] = dRegex
if self.bFinal:
dNode["<final>"] = 1
if self.bInfo:
dNode["<info>"] = 1
return dNode
|