1 / 12

Язык %lang%/0

Язык %lang%/0. Дополнение к языку HLL/0 : оператор цикла for .. to. Выполнили: %username1% %username2%. Синтаксичекские диаграммы программа. Синтаксичекские диаграммы блок. Синтаксичекские диаграммы HLL/0 оператор. Синтаксичекские диаграммы B&S оператор. имя. :=. выражение.

duscha
Download Presentation

Язык %lang%/0

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Язык %lang%/0 Дополнениек языку HLL/0: оператор цикла for.. to Выполнили: %username1% %username2%

  2. Синтаксичекские диаграммы программа

  3. Синтаксичекские диаграммыблок

  4. Синтаксичекские диаграммы HLL/0оператор

  5. Синтаксичекские диаграммы B&Sоператор имя := выражение имя call begin end оператор оператор ; условие if then оператор условие do оператор while имя := выражение оператор выражение for to do

  6. Синтаксичекские диаграммыусловие

  7. Синтаксичекские диаграммывыражение

  8. Синтаксичекские диаграммыслагаемое

  9. Синтаксичекские диаграммымножитель

  10. Место вставки дополнения

  11. Код дополнения else if sym = forsym then begin getsym; if sym = ident then begin i := position(id); if i = 0 then error(11) else if table[i].kind <> variable then begin error(12); i := 0 end; getsym; if sym = becomes then getsym else error(13); expression(fsys + [tosym]); if i <> 0 then with table[i] do gen(sto, lev - level, adr); cx1 := cx;

  12. Код дополнения (продолжение) if sym = tosym then begin gen(lod, lev - table[i].level, table[i].adr); getsym; expression(fsys + [dosym]); gen(opr, 0, 13); cx2 := cx; gen(jpc, 0, 0); if sym = dosym then getsym else error(18); statement(fsys); gen(lod, lev - table[i].level, table[i].adr); gen(lod, lev - table[i].level, table[i].adr); gen(lit, 0, 1); gen(opr, 0, 2); gen(sto, lev - table[i].level, table[i].adr); gen(jmp, 0, cx1); code[cx2].a := cx end else error(41); end else error(41); end;

More Related