Property | Type | Description | |
---|---|---|---|
EXIT | LSharp.Symbol | ||
NIL | LSharp.Symbol | ||
PLUS | LSharp.Symbol | ||
PLUSPLUS | LSharp.Symbol | ||
QUASIQUOTE | LSharp.Symbol | ||
T | LSharp.Symbol | ||
UNQUOTE | LSharp.Symbol | ||
UNQUOTE_SPLICING | LSharp.Symbol |
Method | Description | |
---|---|---|
Add ( IEnumerable args ) : object | ||
AllInt ( IEnumerable args ) : bool |
Returns true if all arguments are integers
|
|
AllSeq ( IEnumerable args ) : bool | ||
AllString ( IEnumerable args ) : bool |
Returns true if all arguments are strings
|
|
And ( IEnumerable args, Environment environment ) : bool | ||
Apply ( object f, IEnumerable args, Environment environment ) : object | ||
AsArray ( object list ) : object[] | ||
Boolify ( object o ) : bool |
LSharp has a liberal view of true and false, including T NIL and null. This method normalises any object to Boolean true or false.
|
|
Bound ( LSharp.Symbol symbol, Environment environment ) : bool | ||
Caar ( object arg ) : Object | ||
Cadr ( object arg ) : Object | ||
Car ( object arg ) : Object | ||
Cddr ( object arg ) : Object | ||
Cdr ( object arg ) : Object | ||
Coerce ( object o, object t ) : object |
Changes the type of o to be type t
|
|
Compile ( object arg ) : Object | ||
Cons ( object a, object b ) : Object | ||
Disp ( object arg, |
||
Divide ( object args ) : Object |
(/ numerator denominator+) Divides a numerator by one or more denominators
|
|
Do1 ( object args ) : Object | ||
EachLoop ( IEnumerable enumeration, object body, Environment environment ) : object | ||
Err ( object o ) : Object | ||
Eval ( object arg ) : Object | ||
EvalReader ( TextReader textReader, Environment environment ) : Object | ||
EvalString ( string s ) : Object | ||
EvalStrings ( string s ) : Object | ||
ExpandSSyntax ( Object x ) : Object | ||
ForLoop ( int start, int finish, object body, Environment environment ) : object | ||
FromArray ( object os, int skip ) : |
||
GreaterThan ( IEnumerable args ) : Object |
(> object1 object2 object*) Returns true if object1 is greater than object2, object2 is greater than object3 and so on.
|
|
HasSyntaxChar ( string s ) : bool | ||
Help ( object x, |
||
IdFn ( object arg ) : Object | ||
If ( object args, Environment environment ) : object | ||
Inspect ( object o, |
||
Is ( object a, object b ) : bool | ||
IsAtom ( object arg ) : bool | ||
IsEmpty ( object arg ) : bool | ||
IsLiteral ( Object o ) : bool | ||
IsNumber ( Object o ) : bool | ||
IsSeq ( object o ) : bool | ||
IsSsyntax ( object x ) : bool | ||
Join ( IEnumerable os ) : ISequence | ||
Join ( ISequence a, ISequence b ) : ISequence | ||
Last ( object arg ) : object | ||
Len ( object arg ) : int | ||
LessThan ( IEnumerable args ) : Object |
(< object1 object2 object*) Less than Returns true if object1 is less than object2 and object2 is less than object3 and so on.
|
|
List ( IEnumerable args ) : |
||
Load ( string filename ) : Object | ||
Load ( string filename, Environment environment ) : Object | ||
MacroExpand ( object expression, bool once, Environment environment ) : object | ||
MakeFunction ( object parameters, object body, string documentation, Environment environment ) : Function | ||
MakeMacro ( object parameters, object body, string documentation, Environment environment ) : |
||
Map ( Function f, object arg, Environment environment ) : ISequence | ||
Member ( object item, object seq ) : bool | ||
Mod ( object args ) : Object | ||
Multiply ( object args ) : Object |
(* number*) Returns the result of multiplying all number arguments
|
|
New ( object args ) : Object | ||
Not ( object a ) : bool | ||
Nth ( object arg, int n ) : object |
Length
|
|
Or ( IEnumerable args, Environment environment ) : bool | ||
Pr ( IEnumerable args, |
||
PrintToString ( Object expression ) : string |
Changes a Lisp object into the string of characters that READ would need to reconstruct it
|
|
Prn ( IEnumerable args, |
||
Progn ( object args ) : Object | ||
QuasiQuote ( Object form, Environment environment ) : object | ||
Range ( int start, int finish, int step ) : ISequence | ||
ReadFromString ( string s ) : object | ||
Reduce ( Function f, object arg, Environment environment ) : object | ||
Reference ( object assemblyNames ) : Object | ||
Repl ( ) : void |
A Read Eval Print Loop
|
|
Runtime ( TextReader textReader, |
Creates a new runtime
|
|
Seq ( object o ) : |
||
StdErr ( ) : |
||
StdIn ( ) : TextReader | ||
StdOut ( ) : |
||
Str ( IEnumerable xs ) : string | ||
StringAppend ( IEnumerable args ) : string | ||
Subtract ( IEnumerable args ) : Object |
(- number*) Subtraction
|
|
Time ( object arg, |
||
ToList ( object list ) : |
||
Type ( object o ) : |
||
TypeOf ( object arg ) : |
||
Uniq ( ) : LSharp.Symbol | ||
Using ( IEnumerable n ) : Object | ||
VarRef ( LSharp.Symbol symbol, Environment environment ) : object |
Returns the value that symbol is bound to in the given environment
|
|
VarSet ( LSharp.Symbol symbol, Object value, Environment environment ) : object |
Binds the given symbol to the given value in the given environment
|
|
WhileLoop ( object test, object body, Environment environment ) : object | ||
WriteC ( char c, |
Method | Description | |
---|---|---|
Reverse ( object arg ) : object | ||
SequenceLength ( ISequence sequence ) : int |
public static Add ( IEnumerable args ) : object | ||
args | IEnumerable | |
return | object |
public static AllInt ( IEnumerable args ) : bool | ||
args | IEnumerable | |
return | bool |
public static AllSeq ( IEnumerable args ) : bool | ||
args | IEnumerable | |
return | bool |
public static AllString ( IEnumerable args ) : bool | ||
args | IEnumerable | |
return | bool |
public static And ( IEnumerable args, Environment environment ) : bool | ||
args | IEnumerable | |
environment | Environment | |
return | bool |
public static Apply ( object f, IEnumerable args, Environment environment ) : object | ||
f | object | |
args | IEnumerable | |
environment | Environment | |
return | object |
public static AsArray ( object list ) : object[] | ||
list | object | |
return | object[] |
public static Bound ( LSharp.Symbol symbol, Environment environment ) : bool | ||
symbol | LSharp.Symbol | |
environment | Environment | |
return | bool |
public static Coerce ( object o, object t ) : object | ||
o | object | |
t | object | |
return | object |
public static Cons ( object a, object b ) : Object | ||
a | object | |
b | object | |
return | Object |
public static Disp ( object arg, |
||
arg | object | |
textWriter | ||
return | Object |
public static Divide ( object args ) : Object | ||
args | object | |
return | Object |
public static EachLoop ( IEnumerable enumeration, object body, Environment environment ) : object | ||
enumeration | IEnumerable | |
body | object | |
environment | Environment | |
return | object |
public static EvalReader ( TextReader textReader, Environment environment ) : Object | ||
textReader | TextReader | |
environment | Environment | |
return | Object |
public static ExpandSSyntax ( Object x ) : Object | ||
x | Object | |
return | Object |
public static ForLoop ( int start, int finish, object body, Environment environment ) : object | ||
start | int | |
finish | int | |
body | object | |
environment | Environment | |
return | object |
public static FromArray ( object os, int skip ) : |
||
os | object | |
skip | int | |
return |
public static GreaterThan ( IEnumerable args ) : Object | ||
args | IEnumerable | |
return | Object |
public static HasSyntaxChar ( string s ) : bool | ||
s | string | |
return | bool |
public static Help ( object x, |
||
x | object | |
writer | ||
return | object |
public static If ( object args, Environment environment ) : object | ||
args | object | |
environment | Environment | |
return | object |
public static Inspect ( object o, |
||
o | object | |
writer | ||
return | object |
public static Is ( object a, object b ) : bool | ||
a | object | |
b | object | |
return | bool |
public static Join ( IEnumerable os ) : ISequence | ||
os | IEnumerable | |
return | ISequence |
public static Join ( ISequence a, ISequence b ) : ISequence | ||
a | ISequence | |
b | ISequence | |
return | ISequence |
public static LessThan ( IEnumerable args ) : Object | ||
args | IEnumerable | |
return | Object |
public static List ( IEnumerable args ) : |
||
args | IEnumerable | |
return |
public static Load ( string filename, Environment environment ) : Object | ||
filename | string | |
environment | Environment | |
return | Object |
public static MacroExpand ( object expression, bool once, Environment environment ) : object | ||
expression | object | |
once | bool | |
environment | Environment | |
return | object |
public static MakeFunction ( object parameters, object body, string documentation, Environment environment ) : Function | ||
parameters | object | |
body | object | |
documentation | string | |
environment | Environment | |
return | Function |
public static MakeMacro ( object parameters, object body, string documentation, Environment environment ) : |
||
parameters | object | |
body | object | |
documentation | string | |
environment | Environment | |
return |
public static Map ( Function f, object arg, Environment environment ) : ISequence | ||
f | Function | |
arg | object | |
environment | Environment | |
return | ISequence |
public static Member ( object item, object seq ) : bool | ||
item | object | |
seq | object | |
return | bool |
public static Multiply ( object args ) : Object | ||
args | object | |
return | Object |
public static Nth ( object arg, int n ) : object | ||
arg | object | |
n | int | |
return | object |
public static Or ( IEnumerable args, Environment environment ) : bool | ||
args | IEnumerable | |
environment | Environment | |
return | bool |
public static Pr ( IEnumerable args, |
||
args | IEnumerable | |
textWriter | ||
return | Object |
public static PrintToString ( Object expression ) : string | ||
expression | Object | |
return | string |
public static Prn ( IEnumerable args, |
||
args | IEnumerable | |
textWriter | ||
return | Object |
public static QuasiQuote ( Object form, Environment environment ) : object | ||
form | Object | |
environment | Environment | |
return | object |
public static Range ( int start, int finish, int step ) : ISequence | ||
start | int | |
finish | int | |
step | int | |
return | ISequence |
public static ReadFromString ( string s ) : object | ||
s | string | |
return | object |
public static Reduce ( Function f, object arg, Environment environment ) : object | ||
f | Function | |
arg | object | |
environment | Environment | |
return | object |
public static Reference ( object assemblyNames ) : Object | ||
assemblyNames | object | |
return | Object |
public Runtime ( TextReader textReader, |
||
textReader | TextReader | |
writer | ||
errorWriter | ||
return | System |
public static Str ( IEnumerable xs ) : string | ||
xs | IEnumerable | |
return | string |
public static StringAppend ( IEnumerable args ) : string | ||
args | IEnumerable | |
return | string |
public static Subtract ( IEnumerable args ) : Object | ||
args | IEnumerable | |
return | Object |
public static Time ( object arg, |
||
arg | object | |
textWriter | ||
environment | Environment | |
return | Object |
public static TypeOf ( object arg ) : |
||
arg | object | |
return |
public static Using ( IEnumerable n ) : Object | ||
n | IEnumerable | |
return | Object |
public static VarRef ( LSharp.Symbol symbol, Environment environment ) : object | ||
symbol | LSharp.Symbol | |
environment | Environment | |
return | object |
public static VarSet ( LSharp.Symbol symbol, Object value, Environment environment ) : object | ||
symbol | LSharp.Symbol | |
value | Object | |
environment | Environment | |
return | object |
public static WhileLoop ( object test, object body, Environment environment ) : object | ||
test | object | |
body | object | |
environment | Environment | |
return | object |
public static WriteC ( char c, |
||
c | char | |
textWriter | ||
return | Object |