parser

package
v0.0.0-...-841d92d Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2020 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPostfix

func GetPostfix(src []token.Token) []token.Token

generate a postfix expression from an infix expression

func Stack_pop

func Stack_pop(dest *Stack) token.Token

pop the last element of the stack

func Stack_push

func Stack_push(dest *Stack, src token.Token)

push an element onto the stack

Types

type Stack

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

Jump to

Keyboard shortcuts

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