1 / 8

Preklad “ :=“ s pravou stran AV

Preklad “ :=“ s pravou stran AV. Atribúty. da, sa adr typ. Atrib. Preklad. G. Syntaktické pravidlá Sémantické pravidlá PP  LS := E ST. ST . Typ := f ST (LS.typ, E.typ) LS . da := PP . da E .da := LS . sa PP . sa := E . sa + 1. LS  id TA. TA . adr := id.adr LS.typ := id.typ

darcie
Download Presentation

Preklad “ :=“ s pravou stran AV

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. Preklad “ :=“ s pravou stran AV

  2. Atribúty • da, sa • adr • typ

  3. Atrib. Preklad. G Syntaktické pravidlá Sémantické pravidlá PP  LS := E ST ST . Typ := fST(LS.typ, E.typ) LS . da := PP . da E .da := LS . sa PP . sa := E . sa + 1 LS  id TA TA. adr := id.adr LS.typ := id.typ LS.sa := LS.da + 1

  4. Atrib. Preklad. G - Cont. Syntaktické pravidlá Sémantické pravidlá E  E + T + +.typ := fplus(E.typ, T.typ) E0.typ := +.typ da, sa ako pre PP  LS := E ST až na symboly E  T E.typ := T.typ T.da := E.da E.sa := T.sa

  5. Atrib. Preklad. G - Cont. Syntaktické pravidlá Sémantické pravidlá T  T * F * Ako E  E+T+až na symboly Ako E  T až na symboly T  F F (E) Ako E  T až na symboly

  6. Atrib. Preklad. G - Cont. Syntaktické pravidlá Sémantické pravidlá F  id TA DR TA. adr := id.adr F.typ := id.typ F.sa := F.da + 2

More Related