gll

package
v0.0.0-...-d977049 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2021 License: Apache-2.0 Imports: 17 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
	PassAltLabel string
	AltComment   string
	HasPass      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
	FailLabel     string
	PassLabel     string
	PassPostLabel string
	Comment       string
	IsNT          bool
	IsPLook       bool
	IsNLook       bool
	CallNT        string
	NotLastAlt    bool
	Head          string
	ResetTokens   bool
	NotLastSlot   bool
}

type Symbol

type Symbol struct {
	TokType string
	Label   string
}

type TSData

type TSData struct {
	Label   string
	Symbols []*Symbol
}

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 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