help-bison
[Top][All Lists]
Advanced

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

(No Subject)


From: Pratima Nallapaneni
Subject: (No Subject)
Date: Wed, 25 Sep 2002 19:55:27 -0700

I think 6.15 is the version of yacc i am using. I am not sure I'm sorry . I am 
totally new to this. Could somebody tell me why I am getting these errors. I am 
attaching  my makefile in this mail.
I am using this command on UNIX . 

make xquery.hand_written
and i get following:

yacc  xquery.hand_written.y

conflicts: 5 shift/reduce
mv -f y.tab.c xquery.hand_written.c
cc    -c xquery.hand_written.c -o xquery.hand_written.o
"/usr/ccs/bin/yaccpar", line 134: cannot do pointer arithmetic on operand of unk
nown size
"/usr/ccs/bin/yaccpar", line 221: cannot do pointer arithmetic on operand of unk
nown size
"/usr/ccs/bin/yaccpar", line 221: improper pointer subtraction
"/usr/ccs/bin/yaccpar", line 221: warning: division by 0
"/usr/ccs/bin/yaccpar", line 222: cannot do pointer arithmetic on operand of unk
nown size
"/usr/ccs/bin/yaccpar", line 222: improper pointer subtraction
"/usr/ccs/bin/yaccpar", line 222: warning: division by 0
"/usr/ccs/bin/yaccpar", line 256: cannot do pointer arithmetic on operand of unk
nown size
"/usr/ccs/bin/yaccpar", line 257: cannot do pointer arithmetic on operand of unk
nown size
cc: acomp failed for xquery.hand_written.c
make: *** [xquery.hand_written.o] Error 2
rm xquery.hand_written.c



____________________________________________________________
Tired of all the SPAM in your inbox? Switch to LYCOS MAIL PLUS
http://www.mail.lycos.com/brandPage.shtml?pageId=plus
ROOT = ..
SUBDIRS = parse_tree
USE_LIBS = parse_tree.o util.o


LEXER_OBJS = ytabTokenLookup.o TreeNode.o

# Note: most of this funky stuff only needs to be defined because
# we are doing wierd stuff with Lex and Yacc.

# Either xquery.actions.y or xquery.hand_written.y
YACC_FILE = xquery.actions.y

# Either xquery.l or xquery.hand_written.l
LEX_FILE = xquery.l

all: lexer parser

lex.yy.o: y.tab.h

lexer: lex.yy.c $(LEXER_OBJS) y.tab.h
        $(CXX) $< -o $@ $(LEXER_OBJS) -ll
        $(RM) t/$(TEST_STAMP)

parser: lex.yy.c y.tab.o $(LEXER_OBJS) $(addprefix $(LIB_DIR)/,$(USE_LIBS))
        $(CXX) -DSTAND_ALONE_LEXER=0 -o $@ $^
        $(RM) t/$(TEST_STAMP)

lex.yy.c: $(LEX_FILE)
        $(LEX) $(LFLAGS) $<

y.tab.h y.tab.c: $(YACC_FILE)
        $(YACC) $(YFLAGS) -d $<

xquery.actions.y: xquery.y mk_semanticActions.pl
        @echo Making $@ with dependencies $+
        $(PERL) mk_semanticActions.pl < $< > $@

ytabTokenLookup.c: mk_ytabTokenLookup.pl ytabTokenLookup.h y.tab.h
        $(PERL) $<
clean::
        $(RM) *.d *.o lex.yy.c y.tab.c y.tab.h lexer parser
        $(RM) ytabTokenLookup.c xquery.actions.y

reply via email to

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