Crates.io | lithia |
lib.rs | lithia |
version | 1.0.6 |
source | src |
created_at | 2022-04-05 19:36:47.185285 |
updated_at | 2022-06-29 13:18:36.776119 |
description | Embeddable and simple lisp dialect |
homepage | |
repository | https://github.com/hen6003/Lithia |
max_upload_size | |
id | 562745 |
size | 51,841 |
lisp implemented in rust
Name comes from another name for Lithium Oxide
quote
Returns whatever its given, used for when you don't want to evaluate somethingexit
Exit lisp interpreter, number may be provided for exit code=
, set
Sets a variabledef
Define a globaldefunc
Define a global functioneval
Evaluates the given object and what it returnsprint
Display an objectread
Reads a line into objectsinclude
Reads a file and evaluates it, returning the last objectwhile
While first argument isn't nil, evaluates the restread
Prompts for input and converts it to objectsfunc
Creates a function
(func (arg1 arg2)
(body)
(body)
return_value)
car
, first
Gets the first element in a dot-paircdr
, next
Gets the second element in a dot-pair+
, add
-
, sub
*
, mul
/
, div
%
, mod
==
, eq
!=
, ne