mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 00:24:12 +00:00
adba6b26dc
- Boolean type (no support in lexer yet) - Conditionals - Defines (only work correctly at top level) - More core builtins (apply, cons, car, cdr) - Variable-argument functions - Incremental garbage collection - Garbage collection fixes - Other misc bugs fixed
32 lines
439 B
R
32 lines
439 B
R
#include "Boolean.h"
|
|
|
|
Boolean trueConstant;
|
|
Boolean falseConstant;
|
|
|
|
@implementation Boolean
|
|
|
|
+ (void) initialize
|
|
{
|
|
trueConstant = [Boolean new];
|
|
[trueConstant makeRootCell];
|
|
falseConstant = [Boolean new];
|
|
[falseConstant makeRootCell];
|
|
|
|
}
|
|
|
|
+ (id) trueConstant
|
|
{
|
|
return trueConstant;
|
|
}
|
|
|
|
+ (id) falseConstant
|
|
{
|
|
return falseConstant;
|
|
}
|
|
|
|
- (string) printForm
|
|
{
|
|
return self == trueConstant ? "#t" : "#f";
|
|
}
|
|
|
|
@end
|