Ejemplo n.º 1
0
func assignmentState(l *lexer.Lexer) lexer.StateFunc {
	l.Ignore()
	l.Emit(TokenAssignment)
	return initialState
}
Ejemplo n.º 2
0
func commaState(l *lexer.Lexer) lexer.StateFunc {
	l.Ignore()
	l.Emit(TokenComma)
	return initialState
}
Ejemplo n.º 3
0
func variableState(l *lexer.Lexer) lexer.StateFunc {
	l.Ignore()
	l.NextUpTo(nonAlphanumeric)
	l.Emit(TokenVariable)
	return initialState
}