convert

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

The package convert provides the function Convert, which converts the lambda term into the pi term

Each function Convert, ConvertFromFiles and ConvertFromString needs a mode for an argument. Only CallByValue mode is implemented currently.

TODO(nekketsuuu): Avoid name collision

TODO(nekketsuuu): Implement CallByName mode

Index

Constants

View Source
const (
	CallByValue = iota
	CallByName
)

Variables

This section is empty.

Functions

func Convert

func Convert(l Lambda, mode EvalMode) (Pi, error)

Convert a lambda term into a pi term.

func ConvertFromFile

func ConvertFromFile(filename string, mode EvalMode) (syntax.Pi, error)

func ConvertFromString

func ConvertFromString(str string, mode EvalMode) (syntax.Pi, error)

Types

type EvalMode

type EvalMode int

func ToMode

func ToMode(s string) (EvalMode, error)

Jump to

Keyboard shortcuts

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