Example #1
0
func lexLeftBracket(l *lex.Lexer) lex.StateFn {
	l.Accept("[", lex.Emit(tLeftBracket))
	return lexSection
}
Example #2
0
func lexRightBracket(l *lex.Lexer) lex.StateFn {
	l.Accept("]", lex.Emit(tRightBracket))
	return lexStart
}
Example #3
0
func lexEqualSign(l *lex.Lexer) lex.StateFn {
	l.Accept("=", lex.Emit(tEqualSign))
	return lexValue
}