void Main() { MatchString("BEGIN"); Prolog(); Block(); MatchString("END"); Epilog(); }
void Program(){ Match('p'); char name = GetName(); Prolog(name); DoBlock(name); Match('.'); Epilog(name); }
int main(void) { AvrXSetKernelStack(0); AvrXRunTask(&task1Tcb); Epilog(); // Switch from AvrX Stack to first task while(1); }
int main() { Init(); Match('p'); char Name = GetName(); Prolog(); DoBlock(Name); Match('.'); Epilog(); /* //BoolExpression(); DoProgram();*/ }
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); }
int main() { Init(); MatchString("PROGRAM"); Semi(); Header(); TopDecls(); MatchString("BEGIN"); Prolog(); Block(); MatchString("END"); Epilog(); return 0; }