translator

package
v2.2.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmptyListConstantName      = "__empty_list__"
	EmptyHashTableConstantName = "__empty_hash__"

	ListConstructionFunctionName            = "__cons__"
	HashTableConstructionFunctionName       = "__with__"
	EqualFunctionName                       = "__eq__"
	NotEqualFunctionName                    = "__ne__"
	LessFunctionName                        = "__lt__"
	LessOrEqualFunctionName                 = "__le__"
	GreaterFunctionName                     = "__gt__"
	GreaterOrEqualFunctionName              = "__ge__"
	BitwiseDisjunctionFunctionName          = "__or__"
	BitwiseExclusiveDisjunctionFunctionName = "__xor__"
	BitwiseConjunctionFunctionName          = "__and__"
	BitwiseLeftShiftFunctionName            = "__lshift__"
	BitwiseRightShiftFunctionName           = "__rshift__"
	BitwiseUnsignedRightShiftFunctionName   = "__urshift__"
	AdditionFunctionName                    = "__add__"
	SubtractionFunctionName                 = "__sub__"
	MultiplicationFunctionName              = "__mul__"
	DivisionFunctionName                    = "__div__"
	ModuloFunctionName                      = "__mod__"
	ArithmeticNegationFunctionName          = "__neg__"
	BitwiseNegationFunctionName             = "__bitwise_not__"
	LogicalNegationFunctionName             = "__logical_not__"
	KeyAccessorFunctionName                 = "__item__"
)

...

Variables

This section is empty.

Functions

func TranslateExpression

func TranslateExpression(
	expression *parser.Expression,
	declaredIdentifiers mapset.Set,
) (
	result expressions.Expression,
	settedStates mapset.Set,
	err error,
)

TranslateExpression ...

func TranslateProgram

func TranslateProgram(
	program *parser.Program,
	declaredIdentifiers mapset.Set,
	options Options,
	dependencies runtime.Dependencies,
) (
	definitions context.ValueGroup,
	translatedActors []runtime.ConcurrentActorFactory,
	err error,
)

TranslateProgram ...

Types

type ErrorHandler

type ErrorHandler interface {
	runtime.ErrorHandler
}

ErrorHandler ...

It's used only for mock generating.

type Options

type Options struct {
	InboxSize    int
	InitialState context.State
}

Options ...

type Waiter

type Waiter interface {
	syncutils.WaitGroup
}

Waiter ...

It's used only for mock generating.

Jump to

Keyboard shortcuts

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