gll

package
v3.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package gll generates a Go GLL parser

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gen

func Gen(g *ast.GoGLL, gs *gslot.GSlot, ff *frstflw.FF)

Types

type AltData

type AltData struct {
	NT         string
	AltLabel   string
	AltComment string
	Empty      bool
	Slots      []*SlotData
	LastSlot   *SlotData
}

type Data

type Data struct {
	Package     string
	StartSymbol string
	CodeX       string
	TestSelect  string
}

type SlotData

type SlotData struct {
	AltLabel  string
	PreLabel  string
	PostLabel string
	Comment   string
	IsNT      bool
	Head      string
}

type Symbol

type Symbol struct {
	TokType string
	Label   string
}

type Symbols added in v3.2.9

type Symbols []*Symbol

type TSData

type TSData struct {
	Label   string
	Symbols Symbols
}

type TestSelectData

type TestSelectData struct {
	TestSelect []*TSData
	Follow     []*TSData
}

Directories

Path Synopsis
Package bsr generates a Go BSR package
Package bsr generates a Go BSR package
Package slots generates a Go parser slots package
Package slots generates a Go parser slots package
package sppf generates the SPPF package
package sppf generates the SPPF package
Package symbols generates a Go parser symbols package
Package symbols generates a Go parser symbols package

Jump to

Keyboard shortcuts

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