* [Linux-ia64] Linux IA-64 yacc error
@ 2000-05-26 15:27 Greg Harris
2000-05-26 15:32 ` Bill Nottingham
0 siblings, 1 reply; 2+ messages in thread
From: Greg Harris @ 2000-05-26 15:27 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 502 bytes --]
Is this the correct forum for this question?
> Here is my problem. I am currently trying to build tools/src/nmake
> on trillian machine(received from Intel) with linux as OS. Here is the
> error
> I get
>
> yacc makey.y
>
> yacc:f - out of space.
>
> The machine has ample disk space.
>
We are able to compile simple y file with existing yacc.
> yacc is unable to handle complex
> file such as makey.y.
>
>
> Greg Harris
> Senior Software Engineer (I18N)
> Unify Corporation <<makey.y>>
[-- Attachment #2: makey.y --]
[-- Type: TEXT/plain, Size: 1190 bytes --]
%term number stop DEFINED
%term EQ NE LE GE LS RS
%term ANDAND OROR
%left ','
%right '='
%right '?' ':'
%left OROR
%left ANDAND
%left '|' '^'
%left '&'
%binary EQ NE
%binary '<' '>' LE GE
%left LS RS
%left '+' '-'
%left '*' '/' '%'
%right '!' '~' UMINUS
%left '(' '.'
%%
S: e stop ={return($1);}
e: e '*' e
={$$ = $1 * $3;}
| e '/' e
={$$ = ($3 != 0) ? $1 / $3 : 0;}
| e '%' e
={$$ = ($3 != 0) ? $1 % $3 : 0;}
| e '+' e
={$$ = $1 + $3;}
| e '-' e
={$$ = $1 - $3;}
| e LS e
={$$ = $1 << $3;}
| e RS e
={$$ = $1 >> $3;}
| e '<' e
={$$ = $1 < $3;}
| e '>' e
={$$ = $1 > $3;}
| e LE e
={$$ = $1 <= $3;}
| e GE e
={$$ = $1 >= $3;}
| e EQ e
={$$ = $1 == $3;}
| e NE e
={$$ = $1 != $3;}
| e '&' e
={$$ = $1 & $3;}
| e '^' e
={$$ = $1 ^ $3;}
| e '|' e
={$$ = $1 | $3;}
| e ANDAND e
={$$ = $1 && $3;}
| e OROR e
={$$ = $1 || $3;}
| e '?' e ':' e
={$$ = $1 ? $3 : $5;}
| e ',' e
={$$ = $3;}
| term
={$$ = $1;}
term:
'-' term %prec UMINUS
={$$ = -$2;}
| '!' term
={$$ = !$2;}
| '~' term
={$$ = ~$2;}
| '(' e ')'
={$$ = $2;}
| DEFINED '(' number ')'
={$$= $3;}
| DEFINED number
={$$ = $2;}
| number
={$$= $1;}
%%
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Linux-ia64] Linux IA-64 yacc error
2000-05-26 15:27 [Linux-ia64] Linux IA-64 yacc error Greg Harris
@ 2000-05-26 15:32 ` Bill Nottingham
0 siblings, 0 replies; 2+ messages in thread
From: Bill Nottingham @ 2000-05-26 15:32 UTC (permalink / raw)
To: linux-ia64
[-- Attachment #1: Type: text/plain, Size: 133 bytes --]
Greg Harris (gregh@unify.com) said:
> > yacc makey.y
> >
> > yacc:f - out of space.
yacc is broken. Try the attached patch.
Bill
[-- Attachment #2: byacc-fix.patch --]
[-- Type: text/plain, Size: 503 bytes --]
--- byacc-1.9/defs.h.busted Sat May 6 21:10:56 2000
+++ byacc-1.9/defs.h Sat May 6 21:11:22 2000
@@ -1,7 +1,8 @@
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
-
+#include <string.h>
+#include <stdlib.h>
/* machine-dependent definitions */
/* the following definitions are for the Tahoe */
@@ -280,10 +281,3 @@
extern int errno;
-/* system functions */
-
-extern void free();
-extern char *calloc();
-extern char *malloc();
-extern char *realloc();
-extern char *strcpy();
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-26 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-26 15:27 [Linux-ia64] Linux IA-64 yacc error Greg Harris
2000-05-26 15:32 ` Bill Nottingham
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox