Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 382 lines (347 sloc) 7.506 kB
9215ff1 [STD,et al.] add explicit copyright notices at suggestion of diakopter++
lwall authored
1 # CORE.setting
2 #
3 # Copyright 2009-2010, Larry Wall
4 #
5 # You may copy this software under the terms of the Artistic License,
6 # version 2.0 or later.
7
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
8 my module CORE;
9
10 constant Nil = ();
11
12 my enum Bool <False True>;
13
14 my enum Order < Increase Same Decrease >;
46343b9 [STD] make non-matching list assoc into non-assoc
lwall authored
15 my enum TrigBase <Radians Degrees Gradians Circles>;
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
16
379e2c0 [CORE,Stash] catch up with recent name changes
lwall authored
17 my role Stash { }
18 my role Role does Stash { }
19 my role Package does Stash { }
20 my role Module does Stash { }
21 my role Class does Module { }
22 my role Grammar does Class { }
e05a085 [CORE] catch up with some name changes
lwall authored
23 my role List { }
24 my role Iterable { }
379e2c0 [CORE,Stash] catch up with recent name changes
lwall authored
25
a2f6fa6 [CORE] more nametweaking
lwall authored
26 # XXX does this mean anything?
27 my role Matcher { }
28
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
29 my class P6opaque { }
a2f6fa6 [CORE] more nametweaking
lwall authored
30 my class Mu { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
31 my class Any { }
32 my class Junction { }
33 my class junction { }
34 my class Whatever { }
35 my class WhateverCode { }
36 my class HyperWhatever { }
37 my class Capture { }
3f4b5c9 [CORE] missing Parcel type
lwall authored
38 my class Parcel { }
e05a085 [CORE] catch up with some name changes
lwall authored
39 my class Iterator does List { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
40 my class Match { }
41 my class Signature { }
3a968f4 [CORE.setting] add Parameter type
lwall authored
42 my class Parameter { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
43 my class Proxy { }
44 my class Scalar { }
e05a085 [CORE] catch up with some name changes
lwall authored
45 my class Array does Iterable { }
46 my class Hash does Iterable { }
47 my class KeyHash does Iterable { }
48 my class KeySet does Iterable { }
49 my class KeyBag does Iterable { }
50 my class KeyWeight does Iterable { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
51 my class Pair { }
7ad02be [CORE.setting] add EnumMap and PairMap
lwall authored
52 my class PairMap { }
53 my class Enum { }
54 my class EnumMap { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
55 my class Seq { }
e05a085 [CORE] catch up with some name changes
lwall authored
56 my class SeqIter does List { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
57 my class Range { }
e05a085 [CORE] catch up with some name changes
lwall authored
58 my class RangeIter does List { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
59 my class Set { }
60 my class Bag { }
61 my class Mapping { }
379e2c0 [CORE,Stash] catch up with recent name changes
lwall authored
62 my class Sink { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
63 my class Undef { }
64 my class Failure { }
52a3b92 [CORE.setting] track recent name changes
lwall authored
65 my class EMPTY is Failure { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
66 my class Exception { }
67 my class Code { }
68 my class Block { }
69 my class Routine { }
70 my class Sub { }
71 my class Macro { }
72 my class Method { }
73 my class Submethod { }
74 my class Regex { }
75 my class Multi { }
76
379e2c0 [CORE,Stash] catch up with recent name changes
lwall authored
77 my role Stringy { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
78 my class Str { }
79 my class Cat { }
80 my class Blob { }
81 my class Char { }
82 my class AnyChar { }
83 my class CharLingua { }
84 my class Byte { }
85 my class Codepoint { }
86 my class Grapheme { }
87 my class StrPos { }
88 my class StrLen { }
89 my class Version { }
90
379e2c0 [CORE,Stash] catch up with recent name changes
lwall authored
91 my role Numeric { }
903f95e [CORE] add Real role
lwall authored
92 my role Real { }
4955089 [STD,Cursor] implement internal import correctly
lwall authored
93 my class Num {
b998a5d [STD] start carping about undef
lwall authored
94 # for now, limit denominator to one quintillion to fit in Rat64.
95 constant pi is export = 3.14159_26535_89793_238; # 46_26433_83279_50288;
96 constant e is export = 2.71828_18284_59045_235; # 36_02874_71352_66249;
d671356 [viv] handle ast-less nodes like the bits of rad_number
lwall authored
97 constant i is export = 1i;
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
98 }
844fa0b [STD,CORE,etc.]
lwall authored
99 import Num <pi e i>;
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
100
101 my class num { }
102 my class num16 { }
103 my class num32 { }
104 my class num64 { }
105 my class num128 { }
106
107 my class Complex { }
108 my class complex { }
109
110 # (eventually these should be instantiated generics, complex:of(num64) and such)
111 my class complex16 { }
112 my class complex32 { }
113 my class complex64 { }
114 my class complex128 { }
115
379e2c0 [CORE,Stash] catch up with recent name changes
lwall authored
116 my role Integral { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
117 my class Int { }
118 my class int { }
119
120 my class int1 { }
121 my class int2 { }
122 my class int4 { }
123 my class int8 { }
124 my class int16 { }
125 my class int32 { }
126 my class int64 { }
127
379e2c0 [CORE,Stash] catch up with recent name changes
lwall authored
128 my role Rational { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
129 my class Rat { }
6242460 [CORE.setting] add FatRat and KeyWeight for rodi++
lwall authored
130 my class FatRat { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
131 my class rat { }
132 my class rat8 { }
133 my class rat16 { }
134 my class rat32 { }
135 my class rat64 { }
136
137 my class UInt { }
138 my class uint { }
139 my class uint1 { }
140 my class uint2 { }
141 my class uint4 { }
142 my class uint8 { }
143 my class uint16 { }
144 my class uint32 { }
145 my class uint64 { }
146
6ebf958 [Cursor.pmc] fake up a YOU_ARE_HERE for .pm files to dump .yml
lwall authored
147 my role Buf { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
148 my class buf { }
149 my class buf1 { }
150 my class buf2 { }
151 my class buf4 { }
152 my class buf8 { }
153 my class buf16 { }
154 my class buf32 { }
155 my class buf64 { }
156
157 my class utf8 { }
158 my class utf16 { }
159 my class utf32 { }
160
161 my class Bit { }
162 my class bit { }
163 my class bool { }
164
6ebf958 [Cursor.pmc] fake up a YOU_ARE_HERE for .pm files to dump .yml
lwall authored
165 my role Ordered { }
166 my role Callable { }
167 my role Positional { }
168 my role Associative { }
169 my role Abstraction { }
170 my role Integral { }
cc1c147 [CORE.setting] add AttributeDeclarand and ContainerDeclarand roles
lwall authored
171 my role AttributeDeclarand { }
172 my role ContainerDeclarand { }
6ebf958 [Cursor.pmc] fake up a YOU_ARE_HERE for .pm files to dump .yml
lwall authored
173
174 my subset Comparator of Code where { .signature === :(Any, Any --> Int ) };
175 my subset KeyExtractor of Code where { .signature === :(Any --> Any) };
176 my subset OrderingPair of Pair where { .left ~~ KeyExtractor && .right ~~ Comparator };
a2f6fa6 [CORE] more nametweaking
lwall authored
177 my subset Ordering of Mu where Signature | KeyExtractor | Comparator | OrderingPair | Whatever;
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
178
179 my class Instant { }
180 my class Duration { }
181
182 my class IO { }
183
184 my class KitchenSink { }
185
186 my proto WHAT { }
187 my proto WHERE { }
188 my proto HOW { }
189 my proto WHICH { }
190 my proto VAR { }
191 my proto WHO { }
192 my proto WHENCE { }
193 my proto new { }
194 my proto fail { }
195 my proto temp { }
196 my proto let { }
197 my proto any { }
198 my proto all { }
199 my proto none { }
200 my proto one { }
201 my proto not { }
7e4c801 [STD,CORE] recent renamings
lwall authored
202 my proto so { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
203 my proto next { }
204 my proto last { }
205 my proto redo { }
7e4c801 [STD,CORE] recent renamings
lwall authored
206 my proto succeed { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
207 my proto goto { }
208
209 my proto die { }
210 my proto exit { }
211 my proto warn { }
212 my proto caller { }
213 my proto eval { }
214 my proto evalfile { }
215 my proto callsame { }
216 my proto callwith { }
217 my proto nextsame { }
218 my proto nextwith { }
219 my proto lastcall { }
220 my proto defined { }
bcffc96 [Core] notdef is also exported as multi
lwall authored
221 my proto notdef { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
222 my proto undefine { }
223 my proto item { }
224 my proto list { }
225 my proto slice { }
226 my proto eager { }
227 my proto hyper { }
228
229 my proto cat { }
230 my proto classify { }
231 my proto quotemeta { }
232 my proto chr { }
233 my proto ord { }
234 my proto p5chop { }
235 my proto chop { }
236 my proto p5chomp { }
237 my proto chomp { }
238 my proto trim { }
4228108 [STD] use Cursor to get ansi colors (hack)
lwall authored
239 my proto trim-leading { }
240 my proto trim-trailing { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
241 my proto index { }
242 my proto rindex { }
243 my proto substr { }
244 my proto join { }
245 my proto split { }
246 my proto comb { }
247 my proto pack { }
248 my proto unpack { }
249 my proto uc { }
250 my proto ucfirst { }
251 my proto lc { }
252 my proto lcfirst { }
253 my proto normalize { }
254 my proto nfc { }
255 my proto nfd { }
256 my proto nfkc { }
257 my proto nfkd { }
258 my proto samecase { }
259 my proto sameaccent { }
260 my proto capitalize { }
261 my proto chars { }
262 my proto graphs { }
263 my proto codes { }
264 my proto bytes { }
265
266 my proto say { }
267 my proto print { }
268 my proto open { }
269 my proto close { }
270 my proto printf { }
271 my proto sprintf { }
272 my proto unlink { }
273 my proto link { }
274 my proto symlink { }
275 my proto elems { }
276 my proto end { }
277 my proto grep { }
278 my proto map { }
279 my proto first { }
280 my proto reduce { }
281 my proto sort { }
282 my proto min { }
283 my proto max { }
284 my proto uniq { }
285 my proto push { }
eeba9da [CORE] add rotate
lwall authored
286 my proto rotate { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
287 my proto reverse { }
288 my proto flip { }
289 my proto take { }
290 my proto splice { }
291 my proto slurp { }
292 my proto get { }
293 my proto lines { }
294 my proto getc { }
295 my proto prompt { }
296 my proto chdir { }
297 my proto chmod { }
298
299 my proto zip { }
300 my proto each { }
301 my proto roundrobin { }
302 my proto return { }
303 my proto leave { }
304 my proto make { }
305 my proto pop { }
306 my proto shift { }
307 my proto unshift { }
308 my proto keys { }
309 my proto values { }
310 my proto hash { }
311 my proto kv { }
312 my proto key { }
313 my proto value { }
314 my proto pairs { }
3a25cee [CORE.setting] add invert
lwall authored
315 my proto invert { }
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
316 my proto pair { }
317 my proto enum { }
318
319 my proto sign { }
320 my proto abs { }
321 my proto floor { }
322 my proto ceiling { }
323 my proto round { }
324 my proto truncate { }
325 my proto exp { }
326 my proto log { }
327 my proto log10 { }
328 my proto sqrt { }
329 my proto roots { }
330 my proto rand { }
331 my proto srand { }
332 my proto pick { }
333 my proto cis { }
334 my proto unpolar { }
335
336 my proto sin { }
337 my proto cos { }
338 my proto tan { }
339 my proto asin { }
340 my proto acos { }
341 my proto atan { }
342 my proto sec { }
343 my proto cosec { }
344 my proto cotan { }
345 my proto asec { }
346 my proto acosec { }
347 my proto acotan { }
348 my proto sinh { }
349 my proto cosh { }
350 my proto tanh { }
351 my proto asinh { }
352 my proto acosh { }
353 my proto atanh { }
354 my proto sech { }
355 my proto cosech { }
356 my proto cotanh { }
357 my proto asech { }
358 my proto acosech { }
359 my proto acotanh { }
360 my proto atan2 { }
361
362 my proto gmtime { }
363 my proto localtime { }
364 my proto time { }
365 my proto times { }
366 my proto gethost { }
367 my proto getpw { }
368 my proto chroot { }
369 my proto getlogin { }
370 my proto run { }
371 my proto runinstead { }
372 my proto fork { }
373 my proto wait { }
374 my proto kill { }
375 my proto sleep { }
376
d228aa7 [t/spec] random bug suppression
lwall authored
377 my package PROCESS {
378 my %ENV is export;
379 }
380
e39d0a7 [STD etc.] implement setting compilation to produce CORE.yml from COR…
lwall authored
381 YOU_ARE_HERE;
Something went wrong with that request. Please try again.