Lithia
lisp implemented in rust
Name
Name comes from another name for Lithium Oxide
Functions
quoteReturns whatever its given, used for when you don't want to evaluate somethingexitExit lisp interpreter, number may be provided for exit code=,setSets a variabledefDefine a globaldefuncDefine a global functionevalEvaluates the given object and what it returnsprintDisplay an objectreadReads a line into objectsincludeReads a file and evaluates it, returning the last objectwhileWhile first argument isn't nil, evaluates the restreadPrompts for input and converts it to objectsfuncCreates a function- Use:
car,firstGets the first element in a dot-paircdr,nextGets the second element in a dot-pair
Math functions
+,add-,sub*,mul/,div%,mod==,eq!=,ne