Пример #1
0
void Main() {
  MatchString("BEGIN");
  Prolog();
  Block();
  MatchString("END");
  Epilog();
}
Пример #2
0
void Program(){
    Match('p');
    char name = GetName();
    Prolog(name);
    DoBlock(name);
    Match('.');
    Epilog(name);
}
Пример #3
0
int main(void)
{
    AvrXSetKernelStack(0);

    AvrXRunTask(&task1Tcb);

    Epilog();           // Switch from AvrX Stack to first task
    while(1);
}
Пример #4
0
int main() {
  Init();

  Match('p');
  char Name = GetName();
  Prolog();
  DoBlock(Name);
  Match('.');
  Epilog();
  /*
  //BoolExpression();
  DoProgram();*/
}
Пример #5
0
int main(void)
{
    AvrXSetKernelStack(0);

	MCUCR = _BV(SE);
//    outp((1<<SE) , MCUCR);      // Enable "Sleep" instruction

    AvrXRunTask(&task1Tcb);
    AvrXInitTask(&task2Tcb);    // Init, but don't run until end of Task1
    AvrXInitTask(&task3Tcb);

    Epilog();                   // Switch from AvrX Stack to first task
    while(1);
}
Пример #6
0
int main()
{
    Init();
    MatchString("PROGRAM");
    Semi();
    Header();
    TopDecls();
    MatchString("BEGIN");
    Prolog();
    Block();
    MatchString("END");
    Epilog();

    return 0;
}