Parse Trees made easy

NoClasses -> exams | chutti
exams -> mids | finals
chutti -> strike | IllTabiat | NoMood
So 9j, we can construct a parse trees for these days as follows:
NoClasses -> exams
exams -> mids
Yes, I have mids starting from Monday!!!!

5 Responses

  1. ek chiz agayee hai banani to kya ab iski rair marogai!!!
    chal bey nikal patli gali sai … laikin tum to motai hogai ho isliyeh patli sai fit nahi ao to chal nikal moti gali sai šŸ˜›

  2. Best of luck!

  3. Mota hoon ya patla, koi fark nahin parta… There is a positive correlation šŸ˜‰

    Raheel: thanks. And dua kartay rehna šŸ™‚

  4. This seem more like implementing some algorithm.

  5. Its more of doing lexical analysis, a phase of building a compiler.

    The compiler should know how to construct parse trees, and the compiler builder should know too!

    (I know I am talking rubbish for most people, but some special questions need special answers)


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: