Class: Lisp::Atom
Direct Known Subclasses
Boolean, Character, ClassObject, Environment, EofObject, FfiNew, FfiSend, Frame, Function, Macro, NativeObject, Number, Port, Primitive, String, Symbol, Vector
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
Returns the value of attribute value.
5
6
7
|
# File 'lib/rubylisp/atom.rb', line 5
def value
@value
end
|
Instance Method Details
#all?(&block) ⇒ Boolean
127
128
129
|
# File 'lib/rubylisp/atom.rb', line 127
def all?(&block)
false
end
|
#apply_to(args, env) ⇒ Object
123
124
125
|
# File 'lib/rubylisp/atom.rb', line 123
def apply_to(args, env)
nil
end
|
139
140
141
|
# File 'lib/rubylisp/atom.rb', line 139
def car
nil
end
|
143
144
145
|
# File 'lib/rubylisp/atom.rb', line 143
def cdr
nil
end
|
19
20
21
|
# File 'lib/rubylisp/atom.rb', line 19
def character?
false
end
|
71
72
73
|
# File 'lib/rubylisp/atom.rb', line 71
def class?
false
end
|
99
100
101
|
# File 'lib/rubylisp/atom.rb', line 99
def copy
self.class.new(self.value)
end
|
166
167
168
|
# File 'lib/rubylisp/atom.rb', line 166
def doc
nil
end
|
#environment? ⇒ Boolean
91
92
93
|
# File 'lib/rubylisp/atom.rb', line 91
def environment?
false
end
|
#eof_object? ⇒ Boolean
87
88
89
|
# File 'lib/rubylisp/atom.rb', line 87
def eof_object?
false
end
|
107
108
109
|
# File 'lib/rubylisp/atom.rb', line 107
def eq?(sexpr)
eqv?(sexpr)
end
|
#equal?(sexpr) ⇒ Boolean
111
112
113
|
# File 'lib/rubylisp/atom.rb', line 111
def equal?(sexpr)
eq?(sexpr)
end
|
#eqv?(sexpr) ⇒ Boolean
103
104
105
|
# File 'lib/rubylisp/atom.rb', line 103
def eqv?(sexpr)
self == sexpr
end
|
#evaluate(env) ⇒ Object
119
120
121
|
# File 'lib/rubylisp/atom.rb', line 119
def evaluate(env)
self
end
|
135
136
137
|
# File 'lib/rubylisp/atom.rb', line 135
def false?
false
end
|
75
76
77
|
# File 'lib/rubylisp/atom.rb', line 75
def frame?
false
end
|
59
60
61
|
# File 'lib/rubylisp/atom.rb', line 59
def function?
false
end
|
95
96
97
|
# File 'lib/rubylisp/atom.rb', line 95
def length
1
end
|
#lisp_object? ⇒ Boolean
11
12
13
|
# File 'lib/rubylisp/atom.rb', line 11
def lisp_object?
true
end
|
47
48
49
|
# File 'lib/rubylisp/atom.rb', line 47
def list?
false
end
|
63
64
65
|
# File 'lib/rubylisp/atom.rb', line 63
def macro?
false
end
|
35
36
37
|
# File 'lib/rubylisp/atom.rb', line 35
def negative?
false
end
|
23
24
25
|
# File 'lib/rubylisp/atom.rb', line 23
def number?
false
end
|
67
68
69
|
# File 'lib/rubylisp/atom.rb', line 67
def object?
false
end
|
43
44
45
|
# File 'lib/rubylisp/atom.rb', line 43
def pair?
false
end
|
83
84
85
|
# File 'lib/rubylisp/atom.rb', line 83
def port?
false
end
|
27
28
29
|
# File 'lib/rubylisp/atom.rb', line 27
def positive?
false
end
|
51
52
53
|
# File 'lib/rubylisp/atom.rb', line 51
def primitive?
false
end
|
#print_string ⇒ Object
Also known as:
print_string_helper
159
160
161
|
# File 'lib/rubylisp/atom.rb', line 159
def print_string
self.to_s
end
|
147
148
149
|
# File 'lib/rubylisp/atom.rb', line 147
def quoted
Lisp::ConsCell.cons(Symbol.named("quote"), self)
end
|
151
152
|
# File 'lib/rubylisp/atom.rb', line 151
def set!(v)
end
|
#set_location(type, package, file, start, length) ⇒ Object
7
8
|
# File 'lib/rubylisp/atom.rb', line 7
def set_location(type, package, file, start, length)
end
|
55
56
57
|
# File 'lib/rubylisp/atom.rb', line 55
def special?
false
end
|
15
16
17
|
# File 'lib/rubylisp/atom.rb', line 15
def string?
false
end
|
39
40
41
|
# File 'lib/rubylisp/atom.rb', line 39
def symbol?
false
end
|
154
155
156
|
# File 'lib/rubylisp/atom.rb', line 154
def to_s
@value.to_s
end
|
131
132
133
|
# File 'lib/rubylisp/atom.rb', line 131
def true?
true
end
|
115
116
117
|
# File 'lib/rubylisp/atom.rb', line 115
def type
:unknown
end
|
79
80
81
|
# File 'lib/rubylisp/atom.rb', line 79
def vector?
false
end
|
31
32
33
|
# File 'lib/rubylisp/atom.rb', line 31
def zero?
false
end
|