Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [b]Help on parse (derivation) tree!...[/b]
Index -> General Discussion
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
iopusstarr1




PostPosted: Wed Mar 12, 2008 5:57 pm   Post subject: [b]Help on parse (derivation) tree!...[/b]

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!
Sponsor
Sponsor
Sponsor
sponsor
md




PostPosted: Wed Mar 12, 2008 6:13 pm   Post subject: RE:[b]Help on parse (derivation) tree!...[/b]

You already made a thread about this very thing here. Duplicate threads are bad, m'kay?
Display posts from previous:   
   Index -> General Discussion
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: