Documentation
¶
Index ¶
- type TextReader
- func (t *TextReader) AddWord(word *strings.Builder)
- func (t *TextReader) BlockEndsWith(word *strings.Builder, ending string) bool
- func (t *TextReader) BlockStartsWith(starting string) bool
- func (t *TextReader) LastWord() *strings.Builder
- func (t *TextReader) ReadBlockComment(input string, cc int) int
- func (t *TextReader) ReadLineComment(input string, cc int) int
- func (t *TextReader) ReadString(input string, cc int, stringInit string) (*strings.Builder, int)
- func (t *TextReader) SplitCode(input string)
- func (t *TextReader) StartWord(input byte)
- func (t *TextReader) WriteByte(word int, b byte)
- func (t *TextReader) WriteCurrentWord(input byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextReader ¶
type TextReader struct {
InlineComments string
StartBlockComment string
EndBlockComment string
StringChars []string
StringEscapeChar string
Words []*strings.Builder
KeyWords []string
}
func (*TextReader) AddWord ¶
func (t *TextReader) AddWord(word *strings.Builder)
func (*TextReader) BlockEndsWith ¶
func (t *TextReader) BlockEndsWith(word *strings.Builder, ending string) bool
func (*TextReader) BlockStartsWith ¶
func (t *TextReader) BlockStartsWith(starting string) bool
func (*TextReader) LastWord ¶
func (t *TextReader) LastWord() *strings.Builder
func (*TextReader) ReadBlockComment ¶
func (t *TextReader) ReadBlockComment(input string, cc int) int
func (*TextReader) ReadLineComment ¶
func (t *TextReader) ReadLineComment(input string, cc int) int
func (*TextReader) ReadString ¶
func (*TextReader) SplitCode ¶
func (t *TextReader) SplitCode(input string)
func (*TextReader) StartWord ¶
func (t *TextReader) StartWord(input byte)
func (*TextReader) WriteByte ¶
func (t *TextReader) WriteByte(word int, b byte)
func (*TextReader) WriteCurrentWord ¶
func (t *TextReader) WriteCurrentWord(input byte)
Click to show internal directories.
Click to hide internal directories.