CS152
Chris Pollett
Feb. 11, 2009
gcc -g myprog.c -o myprogwhere -g is the debugging flag.
gdb myprogThis would then give you the gdb prompt: (gdb)
IF = 2 IF(IF .LT. 0) IF = IF + 1 ELSE IF = IF +2
sentence → noun-phrase verb-phrase . noun-phrase → article noun article → a | the noun → girl | dog verb-phrase → verb noun-phrase verb → sees | pets
<sentence> ::= <noun-phrase> <verb phrase> "."
sentence ⇒ noun-phrase verb-phrase . ⇒article noun verb-phrase . ⇒the noun verb-phrase . ⇒the girl verb-phrase . ⇒the girl verb noun-phrase . ⇒the girl sees noun-phrase . ⇒the girl sees article noun . ⇒the girl sees a noun . ⇒the girl sees a dog .