Jump to content

iopusstarr1

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by iopusstarr1

  1. I was given a question of the follwing: Consider the Baby Programming Language (BPL). It is a very simple programming language, whose syntax is given by the following grammar: S → WHILE B DO S ENDWHILE; | SS | A | P A → I := E; I → char(char)٭ E → digit | E + E | I P → PRINT I; B → TRUE | FALSE | E == E Give the parse (derivation) tree for : WHILE 4==3 DO PRINT x; x:=4; ENDWHILE; ex := 4; I'm really stuck. Somebody help!
  2. I was given a question of the follwing: Consider the Baby Programming Language (BPL). It is a very simple programming language, whose syntax is given by the following grammar: S → WHILE B DO S ENDWHILE; | SS | A | P A → I := E; I → char(char)٭ E → digit | E + E | I P → PRINT I; B → TRUE | FALSE | E == E Give the parse tree for : WHILE 4==3 DO PRINT x; x:=4; ENDWHILE; ex := 4; I'm really stuck. Somebody help!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.