C# 클래스 LSharp.Runtime

The LSharp Runtime
파일 보기 프로젝트 열기: RobBlackwell/LSharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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

공개 메소드들

메소드 설명
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, TextWriter textWriter ) : Object
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 ) : Pair
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, TextWriter writer ) : object
IdFn ( object arg ) : Object
If ( object args, Environment environment ) : object
Inspect ( object o, TextWriter writer ) : object
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 ) : Pair
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 ) : Macro
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, TextWriter textWriter ) : Object
PrintToString ( Object expression ) : string

Changes a Lisp object into the string of characters that READ would need to reconstruct it

Prn ( IEnumerable args, TextWriter textWriter ) : Object
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, TextWriter writer, TextWriter errorWriter ) : System

Creates a new runtime

Seq ( object o ) : Sequence
StdErr ( ) : TextWriter
StdIn ( ) : TextReader
StdOut ( ) : TextWriter
Str ( IEnumerable xs ) : string
StringAppend ( IEnumerable args ) : string
Subtract ( IEnumerable args ) : Object

(- number*) Subtraction

Time ( object arg, TextWriter textWriter, Environment environment ) : Object
ToList ( object list ) : Pair
Type ( object o ) : Type
TypeOf ( object arg ) : Type
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, TextWriter textWriter ) : Object

비공개 메소드들

메소드 설명
Reverse ( object arg ) : object
SequenceLength ( ISequence sequence ) : int

메소드 상세

Add() 공개 정적인 메소드

public static Add ( IEnumerable args ) : object
args IEnumerable
리턴 object

AllInt() 공개 정적인 메소드

Returns true if all arguments are integers
public static AllInt ( IEnumerable args ) : bool
args IEnumerable
리턴 bool

AllSeq() 공개 정적인 메소드

public static AllSeq ( IEnumerable args ) : bool
args IEnumerable
리턴 bool

AllString() 공개 정적인 메소드

Returns true if all arguments are strings
public static AllString ( IEnumerable args ) : bool
args IEnumerable
리턴 bool

And() 공개 정적인 메소드

public static And ( IEnumerable args, Environment environment ) : bool
args IEnumerable
environment Environment
리턴 bool

Apply() 공개 정적인 메소드

public static Apply ( object f, IEnumerable args, Environment environment ) : object
f object
args IEnumerable
environment Environment
리턴 object

AsArray() 공개 정적인 메소드

public static AsArray ( object list ) : object[]
list object
리턴 object[]

Boolify() 공개 정적인 메소드

LSharp has a liberal view of true and false, including T NIL and null. This method normalises any object to Boolean true or false.
public static Boolify ( object o ) : bool
o object
리턴 bool

Bound() 공개 정적인 메소드

public static Bound ( LSharp.Symbol symbol, Environment environment ) : bool
symbol LSharp.Symbol
environment Environment
리턴 bool

Caar() 공개 정적인 메소드

public static Caar ( object arg ) : Object
arg object
리턴 Object

Cadr() 공개 정적인 메소드

public static Cadr ( object arg ) : Object
arg object
리턴 Object

Car() 공개 정적인 메소드

public static Car ( object arg ) : Object
arg object
리턴 Object

Cddr() 공개 정적인 메소드

public static Cddr ( object arg ) : Object
arg object
리턴 Object

Cdr() 공개 정적인 메소드

public static Cdr ( object arg ) : Object
arg object
리턴 Object

Coerce() 공개 정적인 메소드

Changes the type of o to be type t
public static Coerce ( object o, object t ) : object
o object
t object
리턴 object

Compile() 공개 메소드

public Compile ( object arg ) : Object
arg object
리턴 Object

Cons() 공개 정적인 메소드

public static Cons ( object a, object b ) : Object
a object
b object
리턴 Object

Disp() 공개 정적인 메소드

public static Disp ( object arg, TextWriter textWriter ) : Object
arg object
textWriter System.IO.TextWriter
리턴 Object

Divide() 공개 정적인 메소드

(/ numerator denominator+) Divides a numerator by one or more denominators
public static Divide ( object args ) : Object
args object
리턴 Object

Do1() 공개 정적인 메소드

public static Do1 ( object args ) : Object
args object
리턴 Object

EachLoop() 공개 정적인 메소드

public static EachLoop ( IEnumerable enumeration, object body, Environment environment ) : object
enumeration IEnumerable
body object
environment Environment
리턴 object

Err() 공개 정적인 메소드

public static Err ( object o ) : Object
o object
리턴 Object

Eval() 공개 메소드

public Eval ( object arg ) : Object
arg object
리턴 Object

EvalReader() 공개 정적인 메소드

public static EvalReader ( TextReader textReader, Environment environment ) : Object
textReader TextReader
environment Environment
리턴 Object

EvalString() 공개 메소드

public EvalString ( string s ) : Object
s string
리턴 Object

EvalStrings() 공개 메소드

public EvalStrings ( string s ) : Object
s string
리턴 Object

ExpandSSyntax() 공개 정적인 메소드

public static ExpandSSyntax ( Object x ) : Object
x Object
리턴 Object

ForLoop() 공개 정적인 메소드

public static ForLoop ( int start, int finish, object body, Environment environment ) : object
start int
finish int
body object
environment Environment
리턴 object

FromArray() 공개 정적인 메소드

public static FromArray ( object os, int skip ) : Pair
os object
skip int
리턴 Pair

GreaterThan() 공개 정적인 메소드

(> object1 object2 object*) Returns true if object1 is greater than object2, object2 is greater than object3 and so on.
public static GreaterThan ( IEnumerable args ) : Object
args IEnumerable
리턴 Object

HasSyntaxChar() 공개 정적인 메소드

public static HasSyntaxChar ( string s ) : bool
s string
리턴 bool

Help() 공개 정적인 메소드

public static Help ( object x, TextWriter writer ) : object
x object
writer System.IO.TextWriter
리턴 object

IdFn() 공개 정적인 메소드

public static IdFn ( object arg ) : Object
arg object
리턴 Object

If() 공개 정적인 메소드

public static If ( object args, Environment environment ) : object
args object
environment Environment
리턴 object

Inspect() 공개 정적인 메소드

public static Inspect ( object o, TextWriter writer ) : object
o object
writer System.IO.TextWriter
리턴 object

Is() 공개 정적인 메소드

public static Is ( object a, object b ) : bool
a object
b object
리턴 bool

IsAtom() 공개 정적인 메소드

public static IsAtom ( object arg ) : bool
arg object
리턴 bool

IsEmpty() 공개 정적인 메소드

public static IsEmpty ( object arg ) : bool
arg object
리턴 bool

IsLiteral() 공개 정적인 메소드

public static IsLiteral ( Object o ) : bool
o Object
리턴 bool

IsNumber() 공개 정적인 메소드

public static IsNumber ( Object o ) : bool
o Object
리턴 bool

IsSeq() 공개 정적인 메소드

public static IsSeq ( object o ) : bool
o object
리턴 bool

IsSsyntax() 공개 정적인 메소드

public static IsSsyntax ( object x ) : bool
x object
리턴 bool

Join() 공개 정적인 메소드

public static Join ( IEnumerable os ) : ISequence
os IEnumerable
리턴 ISequence

Join() 공개 정적인 메소드

public static Join ( ISequence a, ISequence b ) : ISequence
a ISequence
b ISequence
리턴 ISequence

Last() 공개 정적인 메소드

public static Last ( object arg ) : object
arg object
리턴 object

Len() 공개 정적인 메소드

public static Len ( object arg ) : int
arg object
리턴 int

LessThan() 공개 정적인 메소드

(< object1 object2 object*) Less than Returns true if object1 is less than object2 and object2 is less than object3 and so on.
public static LessThan ( IEnumerable args ) : Object
args IEnumerable
리턴 Object

List() 공개 정적인 메소드

public static List ( IEnumerable args ) : Pair
args IEnumerable
리턴 Pair

Load() 공개 메소드

public Load ( string filename ) : Object
filename string
리턴 Object

Load() 공개 정적인 메소드

public static Load ( string filename, Environment environment ) : Object
filename string
environment Environment
리턴 Object

MacroExpand() 공개 정적인 메소드

public static MacroExpand ( object expression, bool once, Environment environment ) : object
expression object
once bool
environment Environment
리턴 object

MakeFunction() 공개 정적인 메소드

public static MakeFunction ( object parameters, object body, string documentation, Environment environment ) : Function
parameters object
body object
documentation string
environment Environment
리턴 Function

MakeMacro() 공개 정적인 메소드

public static MakeMacro ( object parameters, object body, string documentation, Environment environment ) : Macro
parameters object
body object
documentation string
environment Environment
리턴 Macro

Map() 공개 정적인 메소드

public static Map ( Function f, object arg, Environment environment ) : ISequence
f Function
arg object
environment Environment
리턴 ISequence

Member() 공개 정적인 메소드

public static Member ( object item, object seq ) : bool
item object
seq object
리턴 bool

Mod() 공개 정적인 메소드

public static Mod ( object args ) : Object
args object
리턴 Object

Multiply() 공개 정적인 메소드

(* number*) Returns the result of multiplying all number arguments
public static Multiply ( object args ) : Object
args object
리턴 Object

New() 공개 정적인 메소드

public static New ( object args ) : Object
args object
리턴 Object

Not() 공개 정적인 메소드

public static Not ( object a ) : bool
a object
리턴 bool

Nth() 공개 정적인 메소드

Length
public static Nth ( object arg, int n ) : object
arg object
n int
리턴 object

Or() 공개 정적인 메소드

public static Or ( IEnumerable args, Environment environment ) : bool
args IEnumerable
environment Environment
리턴 bool

Pr() 공개 정적인 메소드

public static Pr ( IEnumerable args, TextWriter textWriter ) : Object
args IEnumerable
textWriter System.IO.TextWriter
리턴 Object

PrintToString() 공개 정적인 메소드

Changes a Lisp object into the string of characters that READ would need to reconstruct it
public static PrintToString ( Object expression ) : string
expression Object
리턴 string

Prn() 공개 정적인 메소드

public static Prn ( IEnumerable args, TextWriter textWriter ) : Object
args IEnumerable
textWriter System.IO.TextWriter
리턴 Object

Progn() 공개 정적인 메소드

public static Progn ( object args ) : Object
args object
리턴 Object

QuasiQuote() 공개 정적인 메소드

public static QuasiQuote ( Object form, Environment environment ) : object
form Object
environment Environment
리턴 object

Range() 공개 정적인 메소드

public static Range ( int start, int finish, int step ) : ISequence
start int
finish int
step int
리턴 ISequence

ReadFromString() 공개 정적인 메소드

public static ReadFromString ( string s ) : object
s string
리턴 object

Reduce() 공개 정적인 메소드

public static Reduce ( Function f, object arg, Environment environment ) : object
f Function
arg object
environment Environment
리턴 object

Reference() 공개 정적인 메소드

public static Reference ( object assemblyNames ) : Object
assemblyNames object
리턴 Object

Repl() 공개 메소드

A Read Eval Print Loop
public Repl ( ) : void
리턴 void

Runtime() 공개 메소드

Creates a new runtime
public Runtime ( TextReader textReader, TextWriter writer, TextWriter errorWriter ) : System
textReader TextReader
writer System.IO.TextWriter
errorWriter System.IO.TextWriter
리턴 System

Seq() 공개 정적인 메소드

public static Seq ( object o ) : Sequence
o object
리턴 Sequence

StdErr() 공개 메소드

public StdErr ( ) : TextWriter
리턴 System.IO.TextWriter

StdIn() 공개 메소드

public StdIn ( ) : TextReader
리턴 TextReader

StdOut() 공개 메소드

public StdOut ( ) : TextWriter
리턴 System.IO.TextWriter

Str() 공개 정적인 메소드

public static Str ( IEnumerable xs ) : string
xs IEnumerable
리턴 string

StringAppend() 공개 정적인 메소드

public static StringAppend ( IEnumerable args ) : string
args IEnumerable
리턴 string

Subtract() 공개 정적인 메소드

(- number*) Subtraction
public static Subtract ( IEnumerable args ) : Object
args IEnumerable
리턴 Object

Time() 공개 정적인 메소드

public static Time ( object arg, TextWriter textWriter, Environment environment ) : Object
arg object
textWriter System.IO.TextWriter
environment Environment
리턴 Object

ToList() 공개 정적인 메소드

public static ToList ( object list ) : Pair
list object
리턴 Pair

Type() 공개 정적인 메소드

public static Type ( object o ) : Type
o object
리턴 System.Type

TypeOf() 공개 정적인 메소드

public static TypeOf ( object arg ) : Type
arg object
리턴 System.Type

Uniq() 공개 정적인 메소드

public static Uniq ( ) : LSharp.Symbol
리턴 LSharp.Symbol

Using() 공개 정적인 메소드

public static Using ( IEnumerable n ) : Object
n IEnumerable
리턴 Object

VarRef() 공개 정적인 메소드

Returns the value that symbol is bound to in the given environment
public static VarRef ( LSharp.Symbol symbol, Environment environment ) : object
symbol LSharp.Symbol
environment Environment
리턴 object

VarSet() 공개 정적인 메소드

Binds the given symbol to the given value in the given environment
public static VarSet ( LSharp.Symbol symbol, Object value, Environment environment ) : object
symbol LSharp.Symbol
value Object
environment Environment
리턴 object

WhileLoop() 공개 정적인 메소드

public static WhileLoop ( object test, object body, Environment environment ) : object
test object
body object
environment Environment
리턴 object

WriteC() 공개 정적인 메소드

public static WriteC ( char c, TextWriter textWriter ) : Object
c char
textWriter System.IO.TextWriter
리턴 Object

프로퍼티 상세

EXIT 공개적으로 정적으로 프로퍼티

public static Symbol,LSharp EXIT
리턴 LSharp.Symbol

NIL 공개적으로 정적으로 프로퍼티

public static Symbol,LSharp NIL
리턴 LSharp.Symbol

PLUS 공개적으로 정적으로 프로퍼티

public static Symbol,LSharp PLUS
리턴 LSharp.Symbol

PLUSPLUS 공개적으로 정적으로 프로퍼티

public static Symbol,LSharp PLUSPLUS
리턴 LSharp.Symbol

QUASIQUOTE 공개적으로 정적으로 프로퍼티

public static Symbol,LSharp QUASIQUOTE
리턴 LSharp.Symbol

T 공개적으로 정적으로 프로퍼티

public static Symbol,LSharp T
리턴 LSharp.Symbol

UNQUOTE 공개적으로 정적으로 프로퍼티

public static Symbol,LSharp UNQUOTE
리턴 LSharp.Symbol

UNQUOTE_SPLICING 공개적으로 정적으로 프로퍼티

public static Symbol,LSharp UNQUOTE_SPLICING
리턴 LSharp.Symbol