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