Пример #1
0
func NewEvent(eventType hsm.EventType) *GeneralEvent {
	return &GeneralEvent{
		hsm.NewStdEvent(eventType),
	}
}
Пример #2
0
func NewCCommentStarEvent() *CCommentStarEvent {
	return &CCommentStarEvent{
		hsm.NewStdEvent(EventStar),
	}
}
Пример #3
0
func NewCCommentCharEvent(c byte) *CCommentCharEvent {
	return &CCommentCharEvent{
		hsm.NewStdEvent(EventChar),
		c,
	}
}
Пример #4
0
func NewCCommentSlashEvent() *CCommentSlashEvent {
	return &CCommentSlashEvent{
		hsm.NewStdEvent(EventSlash),
	}
}