c - How to put a final summary message in a yacc program? -


When I redirect the input your yacc program from an input file, and then parse the file I yacc parser Want to print a summary of what this did. I want to do the same thing if I'm entering the input through the keyboard and then I press Ctrl + D . Is there any way to do this?

You can call function on grammar function should be third part

  part grammar {calls the first part %% II to function ();} grammar 2 VARl VAR2 VAR3 {its function 2 ($ 1, $ 2, $ 3);} %% part III function () {} Your function 2 (Int C, four * y, Int z) {} Int main (null) {} void Your (char * s) {fprintf (stderr, "% s \ n", s);}  

Your function can print anything you want to grammar Because now you call the function of the parameters that you


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -