Newsgroups: fj.lang.misc
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!wnoc-sfc-news!wnoc-kyo-news!hakozaki.karrn!siebold!quincy-asy-5.rutgers.edu!kenn
From: kenn@quincy-asy-5.rutgers.edu (Ken Nakata)
Subject: Re: How to describe rule for YACC&LEX.
Message-ID: <1996Feb20.125454.25899@siebold.cc.nagasaki-u.ac.jp>
Sender: news@siebold.cc.nagasaki-u.ac.jp (news)
Reply-To: kenn@eden.rutgers.edu
Organization: Rutgers - The State University of New Jersey
References: <4g25ad$1i2@fu.bekkoame.or.jp> <4gbhu7$8rk@er6.rutgers.edu> <4gbvik$i9s@engr.orst.edu>
Date: Tue, 20 Feb 1996 12:54:54 GMT
Lines: 42
Xref: galaxy.trc.rwcp.or.jp fj.lang.misc:1569
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.lang.misc&nb=1569&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

In article <4gbvik$i9s@engr.orst.edu>,
Masami Takikawa <takikawm@cs.orst.edu> wrote:
] fj.comp.compilers $B$r:n$m$&$NBl@n$G$9!#(B

$B;?@.!#(B

] From article <4gbhu7$8rk@er6.rutgers.edu>
] by kenn@eden.rutgers.edu
] > # $B<B$O;d$b(B CONCAT $B$r;H$&$H(B conflict $B$,5/$-$J$$M}M3$K$D$$$F$O$o$+$C$F$$(B
] > # $B$J$$$N$G$9!#L@<(E*$KM%@h=g0L$r;XDj$7$?;~$O$^$@$7$b!"M%@hEY$,Ey$7$/$F(B
] > # $BJ8K!$,[#Kf$J$H$-$b(B conflict $B$,=P$J$$$H8@$&$N$,Ij$KMn$A$^$;$s!#$I$J$?(B
] > # $B$+$*=u$1$r!#(Bderivation rule $B$b=q$/=g$K0MB8$7$FM%@hEY$,@_Dj$5$l$k$s$G(B
] > # $B$7$?$C$1!)(B
] 
] $BM%@h=g0L$,F1$8;~$O!"(Bleft associative $B$+(B right associative $B$+$N(B
] $B;XDj$,$"$k$+$i!"[#Kf$8$c$J$/$J$j$^$9$h$M(B?

$B$"!*(B a+b-c $B[#Kf$8$c$J$$$N$HF1$8M}M3$G$9$M!#$"$C$?$j$^$($@!#$@$;!<$>!d<+J,(B

$B$G$b!"(B

%token ATOM
%left SELECT
%left CONCAT

%%

regexps: regexps SELECT regexps
| regexps ATOM %prec CONCAT
| ATOM
;

%%

$B$G(B shift/reduce conflict $B$K$J$k$N$+$h$/$o$+$i$J$$!#$&!<$`!#(B

$BCfED(B $B7r(B <kenn@eden.rutgers.edu>
-- 
"He who refuses to do arithmetic is doomed to talk nonsense." -- John McCarthy
 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://remus.rutgers.edu/~kenn/, ftp://remus.rutgers.edu/pub/NetBSD/index.html
Ken Nakata  . . . . Cook College, Rutgers - The State University of New Jersey
