symbols

package
v0.0.0-...-bb84b19 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package symbols is generated by gogll. Do not edit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNT

func IsNT(sym string) bool

IsNT returns true iff sym is a non-terminal symbol of the grammar

Types

type NT

type NT int

NT is the type of non-terminals symbols

const (
	NT_ApplyChunk NT = iota
	NT_ApplyChunks
	NT_CleanStart
	NT_Commit
	NT_ConsensusExec
	NT_ConsensusHeight
	NT_ConsensusHeights
	NT_ConsensusRound
	NT_ConsensusRounds
	NT_FinalizeBlock
	NT_InitChain
	NT_NonProposer
	NT_OfferSnapshot
	NT_PrepareProposal
	NT_ProcessProposal
	NT_Proposer
	NT_Start
	NT_StateSync
	NT_StateSyncAttempt
	NT_StateSyncAttempts
	NT_SuccessSync
)

func ToNT

func ToNT(sym string) NT

ToNT returns the NT value of sym or panics if sym is not a non-terminal of the grammar

func (NT) IsNonTerminal

func (NT) IsNonTerminal() bool

func (NT) String

func (nt NT) String() string

type Symbol

type Symbol interface {
	IsNonTerminal() bool
	String() string
	// contains filtered or unexported methods
}

type Symbols

type Symbols []Symbol

func (Symbols) Equal

func (ss Symbols) Equal(ss1 Symbols) bool

func (Symbols) String

func (ss Symbols) String() string

func (Symbols) Strings

func (ss Symbols) Strings() []string

type T

type T int

T is the type of terminals symbols

const (
	T_0 T = iota // apply_snapshot_chunk
	T_1          // commit
	T_2          // finalize_block
	T_3          // init_chain
	T_4          // offer_snapshot
	T_5          // prepare_proposal
	T_6          // process_proposal
)

func (T) IsNonTerminal

func (T) IsNonTerminal() bool

func (T) String

func (t T) String() string

Jump to

Keyboard shortcuts

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