Exemple #1
0
func NewAnnotatedHSM(top, initial hsm.State) *AnnotatedHSM {
	return &AnnotatedHSM{
		StdHSM: hsm.NewStdHSM(HSMTypeAnnotated, top, initial),
	}
}
Exemple #2
0
func NewCCommentHSM(top, initial hsm.State) *CCommentHSM {
	return &CCommentHSM{
		StdHSM:       hsm.NewStdHSM(HSMTypeCComment, top, initial),
		codeCharList: list.New(),
	}
}