[SI-LIST] The YACC-compatible Parser Generator produces errors when processing the ICM lex&Yacc files
- From: slwu <Shulong.Wu@xxxxxxxxxxxx>
- To: "si-list@xxxxxxxxxxxxx" <si-list@xxxxxxxxxxxxx>
- Date: Wed, 24 Mar 2004 15:36:01 +0800
Hi all,
When I use bison to convert the ICM parser Yacc file (ibis-icm-yacc.y) to C
program, like this:
/usr/bin/bison -d -p ICM ibis-icm-yacc.y
It produces many errors, like these:
ibis-icm-yacc.y:587: invalid @-construct
ibis-icm-yacc.y:587: $. is invalid
ibis-icm-yacc.y:587: invalid @-construct
ibis-icm-yacc.y:587: $. is invalid
ibis-icm-yacc.y:588: invalid @-construct
ibis-icm-yacc.y:588: $. is invalid
ibis-icm-yacc.y:588: invalid @-construct
ibis-icm-yacc.y:588: $. is invalid
ibis-icm-yacc.y:594: invalid @-construct
ibis-icm-yacc.y:594: $ is invalid
...
It seems that once bison encounters a "@$", an error message is generated.
And I can not find any rules describing this in Lex&Yacc.
Anyone can give me some solutions to this issue ?
Thanks in advanced
Shulong
------------------------------------------------------------------
To unsubscribe from si-list:
si-list-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field
or to administer your membership from a web page, go to:
http://www.freelists.org/webpage/si-list
For help:
si-list-request@xxxxxxxxxxxxx with 'help' in the Subject field
List FAQ wiki page is located at:
http://si-list.org/wiki/wiki.pl
List technical documents are available at:
http://www.si-list.org
List archives are viewable at:
http://www.freelists.org/archives/si-list
or at our remote archives:
http://groups.yahoo.com/group/si-list/messages
Old (prior to June 6, 2001) list archives are viewable at:
http://www.qsl.net/wb6tpu
Other related posts:
- » [SI-LIST] The YACC-compatible Parser Generator produces errors when processing the ICM lex&Yacc files