quakeforge/ruamoko/scheme/Compiler.h

30 lines
719 B
C
Raw Normal View History

#ifndef __Compiler_h
#define __Compiler_h
#include "SchemeObject.h"
#include "CompiledCode.h"
#include "Symbol.h"
#include "Scope.h"
#include "Error.h"
#define TAIL 1
@interface Compiler: SchemeObject
{
2011-02-14 13:39:43 +00:00
CompiledCode *code;
SchemeObject *sexpr;
Scope *scope;
Error *err;
}
2011-02-14 13:39:43 +00:00
+ (id) newWithLambda: (SchemeObject *) xp scope: (Scope *) sc;
- (id) initWithLambda: (SchemeObject *) xp scope: (Scope *) sc;
- (SchemeObject*) compile;
2011-02-14 13:39:43 +00:00
- (void) emitExpression: (SchemeObject *) expression flags: (integer) fl;
- (void) emitLambda: (SchemeObject *) expression;
- (void) emitConstant: (SchemeObject *) expression;
- (void) emitApply: (SchemeObject *) expression flags: (integer) fl;
@end
#endif //__Compiler_h