Versions in this module Expand all Collapse all v0 v0.0.53 May 16, 2022 v0.0.52 May 16, 2022 v0.0.51 May 14, 2022 v0.0.50 Jan 30, 2022 v0.0.49 Jan 30, 2022 v0.0.48 Jan 30, 2022 Changes in this version type Stream + func NewWithBufferSize(input io.RuneReader, size int) *Stream v0.0.47 Jun 25, 2021 v0.0.3 Apr 24, 2021 v0.0.2 Apr 18, 2021 v0.0.1 Apr 18, 2021 Changes in this version + var ErrStartOfFile = errors.New("SOF") + type Buffer struct + func NewBuffer(size int) *Buffer + func NewBufferFromString(s string, size int) *Buffer + func (b *Buffer) Append(runes ...rune) error + func (b *Buffer) At(i int) rune + func (b *Buffer) Collect() (s string) + func (b *Buffer) CollectSlice(max int) (s string) + func (b *Buffer) Len() int + func (b *Buffer) Peek() string + type Position struct + Col int + Index int64 + Line int + func NewPosition(line int, col int) Position + func (p *Position) Advance(r rune) + func (p *Position) Eq(cmp Position) bool + func (p *Position) Retreat(r rune) + func (p *Position) String() string + type Stream struct + Buffer *Buffer + Current int64 + CurrentRune rune + Input io.RuneReader + Start int64 + func New(input io.RuneReader) *Stream + func NewFromString(input string) *Stream + func (l *Stream) Advance() (r rune, err error) + func (l *Stream) Collect() string + func (l *Stream) Index() int64 + func (l *Stream) Peek() (rune, error) + func (l *Stream) PeekN(n int) (s string, err error) + func (l *Stream) Position() (line, column int) + func (l *Stream) Retreat() (r rune, err error) + func (l *Stream) String() string + type StringRuneReader struct + func (sr *StringRuneReader) ReadRune() (r rune, size int, err error)