--- parser3/src/main/compile_tools.h 2001/03/12 09:08:50 1.29 +++ parser3/src/main/compile_tools.h 2001/03/24 16:29:09 1.34 @@ -1,9 +1,11 @@ -/* - Parser +/** @file + Parser: compiler support helper functions decls. + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile_tools.h,v 1.29 2001/03/12 09:08:50 paf Exp $ + $Id: compile_tools.h,v 1.34 2001/03/24 16:29:09 paf Exp $ */ #ifndef COMPILE_TOOLS @@ -16,6 +18,7 @@ enum lexical_state { LS_USER, + LS_COMMENT, LS_DEF_NAME, LS_DEF_PARAMS, LS_DEF_LOCALS, @@ -38,7 +41,7 @@ struct parse_control { // input Pool *pool; Request *request; - VClass *cclass; + VStateless_class *cclass; #ifndef NO_CSTRING_ORIGIN const char *source; const char *file; @@ -84,9 +87,10 @@ inline void P(Array/**/ *resu } // aPpend 'vstring' to 'result' void PV(Array/**/ *result, VString *vstring); -// aPpend 'Code_Array' to result +// aPpend 'simple Code_Array' to result void PCA(Array/**/ *result, Array/**/ *code_array); - +// aPpend 'expression Code_Array' to result +void PEA(Array/**/ *result, Array/**/ *code_array); // Value Literal // returns array with // first: OP_VALUE instruction