--- parser3/src/include/pa_request.h 2001/03/10 11:03:47 1.22 +++ parser3/src/include/pa_request.h 2001/03/10 14:05:35 1.27 @@ -1,5 +1,5 @@ /* - $Id: pa_request.h,v 1.22 2001/03/10 11:03:47 paf Exp $ + $Id: pa_request.h,v 1.27 2001/03/10 14:05:35 paf Exp $ */ #ifndef PA_REQUEST_H @@ -14,8 +14,11 @@ #include "pa_vclass.h" #define MAIN_METHOD_NAME "main" +#define AUTO_METHOD_NAME "auto" #define RUN_NAME "RUN" + #define ROOT_NAME "ROOT" +#define ENV_NAME "ENV" #ifndef NO_STRING_ORIGIN # define COMPILE_PARAMS char *source, String *name, char *file @@ -41,16 +44,19 @@ public: void core(); void use(char *file, String *alias); // core.C - Value& autocalc(Value& value, bool make_string=true); // execute.C + Value& autocalc(Value& value, const String *name=0, bool make_string=true); // execute.C - void write(String& astring) { - wcontext->write(astring, lang); // append string, assigning untaint language + void write(Value& avalue) { + // appending possible string, assigning untaint language + wcontext->write(avalue, lang); } public: // default base VClass root_class; + // $ENV:fields here + VClass env_class; // contexts Value *self, *root, *rcontext; @@ -75,6 +81,7 @@ private: // compile.C private: // execute.C + char *execute_static(VClass& vclass, String& method_name, bool return_cstr); void execute(const Array& ops); Value *get_element(); @@ -85,11 +92,7 @@ private: // lang&raw private: // lang&raw manipulation - - + // TODO }; -// core func -void core(); - #endif