slot

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package slot is generated by gogll. Do not edit.

Generated by gogll. Do not edit.

Copyright 2019 Marius Ackerman

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	NT  string
	Alt int
	Pos int
}

type Label

type Label int
const (
	A0R0 Label = iota
	A0R1
	B0R0
	B0R1
	S0R0
	S0R1
	S0R2
	S1R0
	S1R1
	S1R2
	S2R0
)

func GetAlternates

func GetAlternates(nt string) []Label

func GetLabel

func GetLabel(nt string, alt, pos int) Label

func (Label) Alternate

func (l Label) Alternate() int

func (Label) EoR

func (l Label) EoR() bool

func (Label) Head

func (l Label) Head() string

func (Label) Index

func (l Label) Index() Index

func (Label) Pos

func (l Label) Pos() int

func (Label) Slot

func (l Label) Slot() *Slot

func (Label) String

func (l Label) String() string

func (Label) Symbols

func (l Label) Symbols() []string

type Slot

type Slot struct {
	NT      string
	Alt     int
	Pos     int
	Symbols []string
	Label   Label
}

func (*Slot) EoR

func (s *Slot) EoR() bool

func (*Slot) String

func (s *Slot) String() string

Jump to

Keyboard shortcuts

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