struct CYNonLocal;
struct CYContext {
- apr_pool_t *pool_;
CYOptions &options_;
CYScope *scope_;
CYNonLocal *nextlocal_;
unsigned unique_;
- CYContext(apr_pool_t *pool, CYOptions &options) :
- pool_(pool),
+ CYContext(CYOptions &options) :
options_(options),
scope_(NULL),
nonlocal_(NULL),
class CYDriver {
public:
- CYPool pool_;
-
CYState state_;
void *scanner_;
void ScannerDestroy();
public:
- CYDriver(apr_pool_t *pool = NULL, const std::string &filename = "");
+ CYDriver(const std::string &filename = "");
~CYDriver();
Condition GetCondition();
{
}
+ CYVariable(const char *name) :
+ name_(new($pool) CYIdentifier(name))
+ {
+ }
+
CYPrecedence(0)
CYRightHand(false)
virtual void Output(CYOutput &out, CYFlags flags) const;
};
-struct CYNew :
+namespace cy {
+namespace Syntax {
+
+struct New :
CYExpression
{
CYExpression *constructor_;
CYArgument *arguments_;
- CYNew(CYExpression *constructor, CYArgument *arguments) :
+ New(CYExpression *constructor, CYArgument *arguments) :
constructor_(constructor),
arguments_(arguments)
{
virtual CYExpression *AddArgument(CYContext &context, CYExpression *value);
};
+} }
+
struct CYCall :
CYExpression
{