lexrun

package
v0.57.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package lexrun contains bounded, state-preserving lexer loops.

Index

Constants

View Source
const NoMatch = int32(0x7fff_ffff)

NoMatch and SkipBit are shared with the native ASCII table builder.

View Source
const SkipBit = int32(-1 << 31)

Variables

This section is empty.

Functions

func ASCII

func ASCII(source []byte, start int, row *[128]int32, state int32) int

ASCII advances over explicit, non-skipping transitions back to state. Newlines, Unicode, failed transitions and every state change stay with the caller's scalar scanner. The caller records the final state's acceptance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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