lispvm

package
v0.0.0-...-190a898 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2018 License: LGPL-3.0-or-later Imports: 11 Imported by: 0

Documentation

Overview

This file is part of the Dazzle Gravity library.

The Dazzle Gravity library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Dazzle Gravity library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Dazzle Gravity library. If not, see <e <http://www.gnu.org/licenses/>./>.

This file is part of the Dazzle Gravity library.

The Dazzle Gravity library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Dazzle Gravity library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Dazzle Gravity library. If not, see <e <http://www.gnu.org/licenses/>./>.

This file is part of the Dazzle Gravity library.

The Dazzle Gravity library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Dazzle Gravity library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Dazzle Gravity library. If not, see <e <http://www.gnu.org/licenses/>./>.

This file is part of the Dazzle Gravity library.

The Dazzle Gravity library is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Dazzle Gravity library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with the Dazzle Gravity library. If not, see <e <http://www.gnu.org/licenses/>./>.

Index

Constants

View Source
const (
	//LispVMVersion is current VM version
	LispVMVersion = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type LispVM

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

LispVM is Lisp virtual machine

func NewLispVM

func NewLispVM(context vm.Context, config vm.Config) *LispVM

NewLispVM creates a new LispVM object

func (*LispVM) Config

func (lispvm *LispVM) Config() vm.Config

Config returns

func (*LispVM) Context

func (lispvm *LispVM) Context() vm.Context

Context returns context of LispVM

func (*LispVM) Exec

func (lispvm *LispVM) Exec(contract *structure.Contract) (ret bool)

Exec returns contract execute result

func (*LispVM) ID

func (lispvm *LispVM) ID() uint32

ID returns unique identification of LispVM

func (*LispVM) ScriptCode

func (lispvm *LispVM) ScriptCode() byte

ScriptCode returns Lisp language code

func (*LispVM) SetEnv

func (lispvm *LispVM) SetEnv(context vm.Context, config vm.Config)

SetEnv setup LispVM environment

func (*LispVM) Version

func (lispvm *LispVM) Version() uint16

Version returns LispVM version

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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