# XXX: objective-c exists on non-Darwin
dll := dylib
-flags += -DCY_EXECUTE
link += -lobjc -framework CoreFoundation
console += -framework Foundation
library += -install_name /usr/lib/libcycript.$(dll)
virtual void Output(CYOutput &out) const;
};
-struct CYContext :
- CYScope
-{
+struct CYContext {
apr_pool_t *pool_;
CYOptions &options_;
CYScope *scope_;
CYContext(apr_pool_t *pool, CYOptions &options) :
pool_(pool),
options_(options),
- scope_(this)
+ scope_(NULL)
{
}
CYScope scope;
scope.parent_ = context.scope_;
context.scope_ = &scope;
-
statements_ = statements_->ReplaceAll(context);
-
context.scope_ = scope.parent_;
-
scope.Scope(context, statements_);
size_t offset(0);
}
void CYScope::Scope(CYContext &context, CYStatement *&statements) {
+ if (parent_ == NULL)
+ return;
+
CYDeclarations *last(NULL), *curr(NULL);
IdentifierOffsets offsets;
(4).toString() is legal, but I'm stripping the ()'s somehow in the serializer
applyOnMainThread, when done at console, loops the cyonifier
special work needs to be done to correctly handle the "arguments" symbol: Declare("arguments", ...Special)
+at the Program level I seem to be eating away all of the var statements