--- parser3/src/main/compile_tools.h 2002/08/01 11:41:17 1.63 +++ parser3/src/main/compile_tools.h 2002/09/13 14:11:44 1.65 @@ -8,7 +8,7 @@ #ifndef COMPILE_TOOLS #define COMPILE_TOOLS -static const char* IDENT_COMPILE_TOOLS_H="$Date: 2002/08/01 11:41:17 $"; +static const char* IDENT_COMPILE_TOOLS_H="$Date: 2002/09/13 14:11:44 $"; #include "pa_opcode.h" #include "pa_types.h" @@ -17,7 +17,7 @@ static const char* IDENT_COMPILE_TOOLS_H enum lexical_state { LS_USER, LS_NAME_SQUARE_PART, - LS_COMMENT, + LS_USER_COMMENT, LS_DEF_NAME, LS_DEF_PARAMS, LS_DEF_LOCALS, @@ -26,6 +26,7 @@ enum lexical_state { LS_EXPRESSION_STRING_QUOTED, LS_EXPRESSION_STRING_APOSTROFED, LS_EXPRESSION_VAR_NAME_WITH_COLON, LS_EXPRESSION_VAR_NAME_WITHOUT_COLON, + LS_EXPRESSION_COMMENT, LS_VAR_NAME_SIMPLE_WITH_COLON, LS_VAR_NAME_SIMPLE_WITHOUT_COLON, LS_VAR_NAME_CURLY, LS_VAR_ROUND, @@ -135,6 +136,8 @@ void changetail_or_append(Array *opcodes void change_string_literal_to_double_literal(Array *literal_string_array); +void change_string_literal_value(Array *literal_string_array, const String& new_value); + void push_LS(parse_control& pc, lexical_state new_state); void pop_LS(parse_control& pc);