--- parser3/src/main/compile_tools.h 2002/01/24 17:18:48 1.53 +++ parser3/src/main/compile_tools.h 2002/01/31 16:39:01 1.54 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: compile_tools.h,v 1.53 2002/01/24 17:18:48 paf Exp $ + $Id: compile_tools.h,v 1.54 2002/01/31 16:39:01 paf Exp $ */ #ifndef COMPILE_TOOLS @@ -58,11 +58,16 @@ struct parse_control { #define MAX_LEXICAL_STATES 100 enum lexical_state ls; ///< =LS_USER; - int sp; ///< =0 - enum lexical_state stack[MAX_LEXICAL_STATES]; + int ls_sp; ///< =0 + enum lexical_state ls_stack[MAX_LEXICAL_STATES]; int brackets_nestages[MAX_LEXICAL_STATES]; ///< brackets nestage on each state bool object_constructor_allowed; + +#define MAX_OPERATOR_STATES 100 + bool operator_call_allowed; ///< =false + int oca_sp; ///< =0 + bool oca_stack[MAX_OPERATOR_STATES]; //@} /// output: filled input 'methods' and 'error' if any @@ -120,4 +125,7 @@ void change_string_literal_to_write_stri void push_LS(parse_control& pc, lexical_state new_state); void pop_LS(parse_control& pc); +void push_OCA(parse_control& pc, bool operator_call_allowed); +void pop_OCA(parse_control& pc); + #endif