help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Broken Pipe?


From: Justin Burdine
Subject: Broken Pipe?
Date: Thu, 20 Feb 2003 12:44:22 -0500
User-agent: Mutt/1.4i

Hello,
     I am getting a "Broken Pipe" error when I try to run the following script:

%token NAME NUMBER
%%
statement:      NAME '=' expression
        |       expression              { printf("= %d\n", $1); }
        ;

expression:     expression '+' NUMBER   { $$ = $1 + $3; }
        |       expression '-' NUMBER   { $$ = $1 - $3; }
        |       NUMBER                  { $$ = $1; }
        ;
%%

main()
{ 
  yyparse (); 
  printf ( "Parse Completed\n" );
}
/*=========================================================================*/
yyerror ( char *s )  /* Called by yyparse on error */
{
  printf ("%s\n", s);
}
 

this script works fine on a different machine running bison 1.25
the version I am trying to run is bison 1.875
OS: solaris 8

I was originally seeing the following error:
M4sugar requires GNU M4. Install it before installing M4sugar or
set the M4 environment variable to its path name.Broken pipe

and got around this by pointing at /usr/local/bin/m4 instead of /usr/ccs/bin/m4 
but I still get Broken pipe error.


Any ideas?

Thanks,
  Justin


---

Justin Burdine
Computer Network Admin.
School of Computer Science 
     & Engineering
  Oakland University




reply via email to

[Prev in Thread] Current Thread [Next in Thread]