The `Backup` function in the `github.com.dgraph-io.dgraph.lex.Lexer` package in Go (Golang) is used to create a backup of the current state of the lexer. This function allows the lexer to temporarily save its current position and state, so that it can be restored later. This is particularly useful when implementing backtracking or error recovery mechanisms in lexing processes.
Golang Lexer.Backup - 25 examples found. These are the top rated real world Golang examples of github.com/dgraph-io/dgraph/lex.Lexer.Backup extracted from open source projects. You can rate examples to help us improve the quality of examples.