示例#1
0
文件: endtoend_test.go 项目: otm/lex
func lexLeftBracket(l *lex.Lexer) lex.StateFn {
	l.Accept("[", lex.Emit(tLeftBracket))
	return lexSection
}
示例#2
0
文件: endtoend_test.go 项目: otm/lex
func lexRightBracket(l *lex.Lexer) lex.StateFn {
	l.Accept("]", lex.Emit(tRightBracket))
	return lexStart
}
示例#3
0
文件: endtoend_test.go 项目: otm/lex
func lexEqualSign(l *lex.Lexer) lex.StateFn {
	l.Accept("=", lex.Emit(tEqualSign))
	return lexValue
}