Language: C++

static PVal *Var_0;
static PVal *Var_1;
static PVal *Var_2;
static PVal *Var_3;

/*-----------------------------------------------------------*/

void __HspEntry( void ) {
	// Var initalize
	Var_0 = &mem_var[0];
	Var_1 = &mem_var[1];
	Var_2 = &mem_var[2];
	Var_3 = &mem_var[3];

	// input _HspVar0, , 1
	PushInt(1); 
	PushDefault();
	PushVAP(Var_0,0); 
	Extcmd(39,3);
	// split _HspVar0, " ", _HspVar1, _HspVar2
	PushVAP(Var_2,0); 
	PushVAP(Var_1,0); 
	PushStr(" "); 
	PushVAP(Var_0,0); 
	Intcmd(42,4);
	// _HspVar3 =int(_HspVar1)(_HspVar2)*int(_HspVar2)
	PushFuncEnd(); 	PushVAP(Var_1,0); 
PushIntfunc(0,1); PushFuncEnd(); 	PushVAP(Var_2,0); 
PushIntfunc(0,1); CalcMulI(); 
	VarSet(Var_3,0);
	// if _HspVar3=0
	PushVar(Var_3,0); PushInt(0); CalcEqI(); 
	if (HspIf()) { TaskSwitch(1); return; }
	// mes "Even"
	PushStr("Even"); 
	Extcmd(15,1);
	TaskSwitch(2);
}

static void L0001( void ) {
	// else
	// mes "Odd"
	PushStr("Odd"); 
	Extcmd(15,1);
	TaskSwitch(2);
}

static void L0002( void ) {
	TaskSwitch(0);
}

static void L0000( void ) {
	// stop 
	Prgcmd(17,0);
	return;
	// goto 
	Prgcmd(0,0);
	return;
}

//-End of Source-------------------------------------------

CHSP3_TASK __HspTaskFunc[]={
(CHSP3_TASK) L0000,
(CHSP3_TASK) L0001,
(CHSP3_TASK) L0002,
(CHSP3_TASK) 0,

};

/*-----------------------------------------------------------*/


/*-----------------------------------------------------------*/

void __HspInit( Hsp3r *hsp3 ) {
	hsp3->Reset( _HSP3CNV_MAXVAR, _HSP3CNV_MAXHPI );
	hsp3->SetDataName( 0 );
	hsp3->SetFInfo( 0, 0 );
	hsp3->SetLInfo( 0, 0 );
	hsp3->SetMInfo( 0, 0 );

Compiler output:
a.cc:1:8: error: 'PVal' does not name a type
    1 | static PVal *Var_0;
      |        ^~~~
a.cc:2:8: error: 'PVal' does not name a type
    2 | static PVal *Var_1;
      |        ^~~~
a.cc:3:8: error: 'PVal' does not name a type
    3 | static PVal *Var_2;
      |        ^~~~
a.cc:4:8: error: 'PVal' does not name a type
    4 | static PVal *Var_3;
      |        ^~~~
a.cc: In function 'void __HspEntry()':
a.cc:10:9: error: 'Var_0' was not declared in this scope
   10 |         Var_0 = &mem_var[0];
      |         ^~~~~
a.cc:10:18: error: 'mem_var' was not declared in this scope
   10 |         Var_0 = &mem_var[0];
      |                  ^~~~~~~
a.cc:11:9: error: 'Var_1' was not declared in this scope
   11 |         Var_1 = &mem_var[1];
      |         ^~~~~
a.cc:12:9: error: 'Var_2' was not declared in this scope
   12 |         Var_2 = &mem_var[2];
      |         ^~~~~
a.cc:13:9: error: 'Var_3' was not declared in this scope
   13 |         Var_3 = &mem_var[3];
      |         ^~~~~
a.cc:16:9: error: 'PushInt' was not declared in this scope
   16 |         PushInt(1);
      |         ^~~~~~~
a.cc:17:9: error: 'PushDefault' was not declared in this scope
   17 |         PushDefault();
      |         ^~~~~~~~~~~
a.cc:18:9: error: 'PushVAP' was not declared in this scope
   18 |         PushVAP(Var_0,0);
      |         ^~~~~~~
a.cc:19:9: error: 'Extcmd' was not declared in this scope
   19 |         Extcmd(39,3);
      |         ^~~~~~
a.cc:23:9: error: 'PushStr' was not declared in this scope
   23 |         PushStr(" ");
      |         ^~~~~~~
a.cc:25:9: error: 'Intcmd' was not declared in this scope
   25 |         Intcmd(42,4);
      |         ^~~~~~
a.cc:27:9: error: 'PushFuncEnd' was not declared in this scope
   27 |         PushFuncEnd();  PushVAP(Var_1,0);
      |         ^~~~~~~~~~~
a.cc:28:1: error: 'PushIntfunc' was not declared in this scope
   28 | PushIntfunc(0,1); PushFuncEnd();        PushVAP(Var_2,0);
      | ^~~~~~~~~~~
a.cc:29:19: error: 'CalcMulI' was not declared in this scope
   29 | PushIntfunc(0,1); CalcMulI();
      |                   ^~~~~~~~
a.cc:30:9: error: 'VarSet' was not declared in this scope
   30 |         VarSet(Var_3,0);
      |         ^~~~~~
a.cc:32:9: error: 'PushVar' was not declared in this scope
   32 |         PushVar(Var_3,0); PushInt(0); CalcEqI();
      |         ^~~~~~~
a.cc:32:39: error: 'CalcEqI' was not declared in this scope
   32 |         PushVar(Var_3,0); PushInt(0); CalcEqI();
      |                                       ^~~~~~~
a.cc:33:13: error: 'HspIf' was not declared in this scope
   33 |         if (HspIf()) { TaskSwitch(1); return; }
      |             ^~~~~
a.cc:33:24: error: 'TaskSwitch' was not declared in this scope
   33 |         if (HspIf()) { TaskSwitch(1); return; }
      |                        ^~~~~~~~~~
a.cc:37:9: error: 'TaskSwitch' was not declared in this scope
   37 |         TaskSwitch(2);
      |         ^~~~~~~~~~
a.cc: In function 'void L0001()':
a.cc:43:9: error: 'PushStr' was not declared in this scope
   43 |         PushStr("Odd");
      |         ^~~~~~~
a.cc:44:9: error: 'Extcmd' was not declared in this scope
   44 |         Extcmd(15,1);
      |         ^~~~~~
a.cc:45:9: error: 'TaskSwitch' was not declared in this scope
   45 |         TaskSwitch(2);
      |         ^~~~~~~~~~
a.cc: In function 'void L0002()':
a.cc:49:9: error: 'TaskSwitch' was not declared in this scope
   49 |         TaskSwitch(0);
      |         ^~~~~~~~~~
a.cc: In function 'void L0000()':
a.cc:54:9: error: 'Prgcmd' was not declared in this scope
   54 |         Prgcmd(17,0);
      |         ^~~~~~
a.cc: At global scope:
a.cc:63:1: error: 'CHSP3_TASK' does not name a type
   63 | CHSP3_TASK __HspTaskFunc[]={
      | ^~~~~~~~~~
a.cc:76:6: error: variable or field '__HspInit' declared void
   76 | void __HspInit( Hsp3r *hsp3 ) {
      |      ^~~~~~~~~
a.cc:76:17: error: 'Hsp3r' was not declared in this scope
   76 | void __HspInit( Hsp3r *hsp3 ) {
      |                 ^~~~~
a.cc:76:24: error: 'hsp3' was not declared in this scope
   76 | void __HspInit( Hsp3r *hsp3 ) {
      |                        ^~~~