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