dvm updated, version of sapfor updated

This commit is contained in:
ALEXks
2024-03-16 17:35:51 +03:00
parent ed34da415a
commit 11888f2ff9
10 changed files with 108 additions and 51 deletions

View File

@@ -736,10 +736,11 @@ void Init_Unparser()
/* set the first tabulation */
TabNumber = 1;
}
} else
{
if (Parser_Initiated != C_Initialized)
{
}
else
{
if (Parser_Initiated != C_Initialized)
{
#define DEFNODECODE(SYM, NAME, TYPE, LENGTH, NT) Unparse_Def[SYM].str = create_unp_str( NAME);
#include"unparseC++.def"
#undef DEFNODECODE
@@ -747,12 +748,15 @@ void Init_Unparser()
#define DEFNODECODE(SYM, NAME, TYPE, LENGTH, NT) Unparse_Def[SYM].fct = NULL;
#include"unparseC++.def"
#undef DEFNODECODE
Parser_Initiated = C_Initialized;
/* init precedence table of operators for C++ */
for(i=BIT_COMPLEMENT_OP - EQ_OP; i<=RSHIFT_ASSGN_OP-EQ_OP;i++)
precedence_C[i] = precedence2_C[i-BIT_COMPLEMENT_OP+EQ_OP];
}
}
Parser_Initiated = C_Initialized;
/* set the first tabulation */
TabNumber = 0;
/* init precedence table of operators for C++ */
for(i=BIT_COMPLEMENT_OP - EQ_OP; i<=RSHIFT_ASSGN_OP-EQ_OP;i++)
precedence_C[i] = precedence2_C[i-BIT_COMPLEMENT_OP+EQ_OP];
}
}
/* initialize the number of flag */