Saturday, 3 March 2012

What is CFG? Give example?


                                   CFG(Context  Free Grammar) is a notation used for representing the syntactic specification of a programming language. A grammar involves four quantities: terminals, non terminals, a starting symbol, and productions.

(e.g.)Grammar for arithmetic expression
        E->E+E|E*E| (E) |id

No comments:

Post a Comment

IE7 Issues Text Indent

                 Unfortunately IE 7 is still widespread among the users hence while theming we have to give special importance to the grea...