Versions in this module Expand all Collapse all v1 v1.9.0 Dec 6, 2015 v1.8.0 Dec 5, 2015 v1.7.0 Jul 19, 2015 v1.6.0 Jul 18, 2015 Changes in this version + const EOF + const LeftBracket + const MinusSign + const NEWLINE + const RightBracket + var ErrNoMatch = fmt.Errorf("No matching comment") + type Comment struct + Row int + Value string + type Comments []Comment + func File(file string) (Comments, error) + func String(str string) Comments + func (c Comments) Get(row int) (*Comment, error) + type LexFn func(*Lexer) LexFn + func LexBegin(lexer *Lexer) LexFn + func LexCode(lexer *Lexer) LexFn + func LexMultiLineComment(lexer *Lexer) LexFn + func LexSingleLineComment(lexer *Lexer) LexFn + type Lexer struct + Input string + Name string + Pos int + Row int + Start int + State LexFn + Tokens chan Token + Width int + func BeginLexing(name, input string) *Lexer + func (l *Lexer) Backup() + func (l *Lexer) Dec() + func (l *Lexer) Emit(tokenType TokenType) + func (l *Lexer) Ignore() + func (l *Lexer) Inc() + func (l *Lexer) InputToEnd() string + func (l *Lexer) IsEOF() bool + func (l *Lexer) Next() rune + func (l *Lexer) NextToken() Token + func (l *Lexer) Peek() rune + func (l *Lexer) Run() + func (l *Lexer) Shutdown() + func (l *Lexer) SkipWhitespace() + type Token struct + Row int + Type TokenType + Value string + type TokenType int + const TComment + const TEOF + const TError + const TLMLComment + const TNewline + const TRMLComment + const TSLComment