codegen

package
v2.0.0-alpha6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package codegen generates Go code for stateful lexers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateLexer

func GenerateLexer(w io.Writer, pkg string, def *stateful.Definition) error

GenerateLexer generates Go code implementing the given stateful lexer.

The generated code should in general by around 10x faster and produce zero garbage per token.

Types

This section is empty.

Jump to

Keyboard shortcuts

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