lexer

package
v0.0.0-...-2688912 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: MIT Imports: 5 Imported by: 0

README

lexer

Parser for the ICU project rbnf rule format

The code in the file lexer.go is based on the template lexer of the standard Go distribution:

    https://golang.org/src/text/template/parse/lex.go

References:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lexer

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

Lexer is a struct for used to parse an input rbnf string into a slice of items

func Lex

func Lex(input string) *Lexer

Lex creates a new Lexer for the input string

func (*Lexer) Result

func (l *Lexer) Result() []string

Result creates the final result (slice of strings)

func (*Lexer) Run

func (l *Lexer) Run() error

Run is called to parse the input string into separate items

Jump to

Keyboard shortcuts

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