eval

 

 

Overview

The eval function evaluates the argument {exp} and returns the resulting value. When the input to eval is a List, invoking eval is equivalent to invoking morph, compile, and eval. If the eval function is passed a List as an argument, it is assumed that lexing has already taken place.

Usage

The eval function is used whenever an expression needs to be evaluated.

 

Syntax


Expression:

(eval string)


Arguments Name Type Description
Argument:stringString A string containing a Lisp language expression to be compiled and evaluated.

Returns:

Always returns the result of (eval (compile (lisp string))).



 

Examples

Here are a number of links to Lambda coding examples which contain this instruction in various use cases.

 

Argument Types

Here are the links to the data types of the function arguments.

Pair List Lambda String

Here are also a number of links to functions having arguments with any of these data types.

*= addMethod appendWriteln append
apply argCount argFetch associate
attachLibrarian balance binaryInsert binarySearch
boolean c::r callcc car
cdr character class clean
closeLog code compareEQ compareGE
compareGT compareLE compareLT compareNE
compare comparison compile compress
cons copy count date
day days360 debugBrowsableProcs debugDetective
debugEval debug defchild defclass
define(macro) define defmacro defmethod
deforphan defriend defun delete
detachLibrarian dimension disassemble display
downcase encode evalInSyncLocalContext eval
exportCsv exportSbf exportTab fileDir
fileEraseDir fileExists fileMakeDir fileReadAll
fileReadRecord fileSizeOf fileWriteAll find
globalBinding hashString hour importCsv
importSbf importTab insert inside
inspect integer isAtom isBitVector
isBoolean isByteVector isCharAlphabetic isCharAlphanumeric
isCharLowercase isCharName isCharNumeric isCharUppercase
isCharWhitespace isChar isCharacter isClass
isComplex isDate isDictionary isDirectory
isEqual isError isFloatVector isIdentical
isInside isIntegerVector isInteger isLambda
isMatrix isMember isMoney isNumberMatrix
isNumberVector isNumber isObjectVector isObject
isPair isPcodeVector isString isStructure
isSymbol isText isType isVector
julian lambda last left
length lisp list loadModule
loadWorkspace macroReplace makeLambda makeQuotedList
makeQuotedSymbol map mapc member
mid minute money month
morph myself new number
objectToList objectToMatrix objectToNumMatrix objectToNumVector
objectToVector offset onError openLog
pair parent parse pointer
proplist proprecord putprop qt
quote refLibrarian ref remProp
remove replace rept reverse
right run saveImmediate saveModule
saveObject saveWorkspace second send
setCar setCdr setLastCdr set
setf setq sizeof sort
sql stringCiEQ stringCiGE stringCiGT
stringCiLE stringCiLT stringCiNE stringFill
stringToBVector stringToVector string submit
substitute substringCiEQ substringCiGE substringCiGT
substringCiLE substringCiLT substringCiNE substringEQ
substringFill substringGE substringGT substringLE
substringLT substringNE substring super
symbolToTypeCode symbol system text
time trim type uniqueInsert
upcase vectorFill writelg writeln
year

Analytic Information Server (AIS)

AIS Component Systems

  • Smartbase Engine
  • QT C++ Libraries
  • MySQL Relational Database
  • AIS Lisp Libraries
  • Rapid Analytic Demo IDE