tokenizer

package module
v0.0.0-...-e06d738 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT Imports: 0 Imported by: 0

README

tokenizer

tokenizer is a custom token decomposer.

Documentation

Index

Constants

View Source
const (
	KindKeyWord = iota
	KindIdentify
	KindDigits
	KindOperator
	KindSplit
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser struct {
	Path   string
	Buffer []byte
	P1     int
	P2     int
	Line   int
	Col    int
}

type Token

type Token struct {
	Path  string
	Type  TokenType
	Value string
	Line  int
	Col   int
}

type TokenKind

type TokenKind int

type TokenPattern

type TokenPattern struct {
}

type TokenSet

type TokenSet struct {
}

TokenSet to predefine token patterns

type TokenType

type TokenType int

Jump to

Keyboard shortcuts

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