lexer

package
v0.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 27, 2026 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Overview

Package lexer implements a lexical scanner for T-SQL.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Tokenize

func Tokenize(input string) []token.Token

Tokenize returns all tokens from the input as a slice.

Types

type Lexer

type Lexer struct {
	// contains filtered or unexported fields
}

Lexer represents a lexical scanner for T-SQL.

func New

func New(input string) *Lexer

New creates a new Lexer for the given input.

func (*Lexer) NextToken

func (l *Lexer) NextToken() token.Token

NextToken returns the next token from the input.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL