|
|
| version 1.27, 2001/03/10 14:05:35 | version 1.34, 2001/03/10 17:10:38 |
|---|---|
| Line 1 | Line 1 |
| /* | /* |
| $Id$ | Parser |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | |
| Author: Alexander Petrosyan <paf@design.ru> | |
| $Id$ | |
| */ | */ |
| #ifndef PA_REQUEST_H | #ifndef PA_REQUEST_H |
| Line 15 | Line 19 |
| #define MAIN_METHOD_NAME "main" | #define MAIN_METHOD_NAME "main" |
| #define AUTO_METHOD_NAME "auto" | #define AUTO_METHOD_NAME "auto" |
| #define RUN_NAME "RUN" | #define RUN_CLASS_NAME "RUN" |
| #define ROOT_NAME "ROOT" | #define ROOT_CLASS_NAME "ROOT" |
| #define ENV_NAME "ENV" | #define ENV_CLASS_NAME "ENV" |
| #ifndef NO_STRING_ORIGIN | #ifndef NO_STRING_ORIGIN |
| # define COMPILE_PARAMS char *source, String *name, char *file | # define COMPILE_PARAMS char *source, String *name, VClass *base_class, char *file |
| # define COMPILE(source, name, file) real_compile(source, name, file) | # define COMPILE(source, name, base_class, file) real_compile(source, name, base_class, file) |
| #else | #else |
| # define COMPILE_PARAMS char *source, String *name | # define COMPILE_PARAMS char *source, String *name, VClass *base_class |
| # define COMPILE(source, name, file) real_compile(source, name) | # define COMPILE(source, name, base_class, file) real_compile(source, name, base_class) |
| #endif | #endif |
| class Local_request_exception; | class Local_request_exception; |
| Line 43 public: | Line 47 public: |
| // core request processing | // core request processing |
| void core(); | void core(); |
| void use(char *file, String *alias); // core.C | VClass *use(char *file, |
| Value& autocalc(Value& value, const String *name=0, bool make_string=true); // execute.C | String *name=0, |
| VClass *base_class=0, | |
| bool fail_on_read_problem=true); // core.C | |
| Value& autocalc( | |
| Value& value, | |
| const String *name=0, | |
| bool make_string=true); // execute.C | |
| void write(const String& astring) { | |
| wcontext->write(astring, String::Untaint_lang::NO); // write(const) = clean | |
| } | |
| void write(Value& avalue) { | void write(Value& avalue) { |
| // appending possible string, assigning untaint language | // appending possible string, assigning untaint language |
| Line 81 private: // compile.C | Line 95 private: // compile.C |
| private: // execute.C | private: // execute.C |
| char *execute_static(VClass& vclass, String& method_name, bool return_cstr); | char *execute_static_method(VClass& vclass, String& method_name, bool return_cstr); |
| void execute(const Array& ops); | void execute(const Array& ops); |
| Value *get_element(); | Value *get_element(); |