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