boolean

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: EUPL-1.2 Imports: 3 Imported by: 1

Documentation

Overview

Package boolean contains builtins and syntax for boolean values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AndS

func AndS(eng *eval.Engine, env sxpf.Environment, args *sxpf.List) (eval.Expr, error)

AndS parses an and statement: (and expr...).

func Boolean

func Boolean(args []sxpf.Object) (sxpf.Object, error)

Boolean negates the given value interpreted as a boolean.

func BooleanP

func BooleanP(args []sxpf.Object) (sxpf.Object, error)

BooleanP is the boolean that returns true if the argument is a number.

func Not

func Not(args []sxpf.Object) (sxpf.Object, error)

Not negates the given value interpreted as a boolean.

func OrS

func OrS(eng *eval.Engine, env sxpf.Environment, args *sxpf.List) (eval.Expr, error)

OrS parses an or statement: (or expr...).

Types

type AndExpr

type AndExpr struct {
	Front []eval.Expr // all expressions, but the last
	Last  eval.Expr
}

AndExpr represents the and form.

func (*AndExpr) Compute

func (ae *AndExpr) Compute(eng *eval.Engine, env sxpf.Environment) (sxpf.Object, error)

type OrExpr

type OrExpr struct {
	Front []eval.Expr // all expressions, but the last
	Last  eval.Expr
}

OrExpr represents the and form.

func (*OrExpr) Compute

func (oe *OrExpr) Compute(eng *eval.Engine, env sxpf.Environment) (sxpf.Object, error)

Jump to

Keyboard shortcuts

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