You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
336 B
Go

package shell
type ParserParameters interface {
MakeToken() Token
ShouldLeave(charsBefore []rune, r rune) bool
Supports(charsBefore []rune, r rune) bool
SubParsers() []Parser
}
type Enterable interface {
Enter(*CharIterator) error
}
type Resetable interface {
Reset()
}
type Leavable interface {
Leave(*CharIterator) error
}