473,395 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Yacc non terminal Symbol

SSG
I tried one lex, yacc program, but it says the error

yacc: e - line 349 of "comp_y.y", a token appears on the lhs of a
production

can anyone tell me about the error..

How to solve it...

By
SSG

Dec 7 '05 #1
4 3131
SSG wrote
(in article
<11**********************@o13g2000cwo.googlegroups .com>):
I tried one lex, yacc program, but it says the error

yacc: e - line 349 of "comp_y.y", a token appears on the lhs of a
production

can anyone tell me about the error..


Why don't you ask in an appropriate newsgroup?

comp.computers.tools.lex+yacc

Followups set...

--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw

Dec 7 '05 #2
On 2005-12-07, SSG <ss****@gmail.com> wrote:
I tried one lex, yacc program, but it says the error

yacc: e - line 349 of "comp_y.y", a token appears on the lhs of a
production

can anyone tell me about the error..

How to solve it...

By
SSG


It's really not on-topic for here, but there's really no way to tell
without line 349 and possibly context around it
Dec 7 '05 #3
SSG wrote:
I tried one lex, yacc program, but it says the error

yacc: e - line 349 of "comp_y.y", a token appears on the lhs of a
production

can anyone tell me about the error..

How to solve it...


$oracle -mw

- - 22. Jiji (63. Jiji)
--- Already Completed:
- - Receipt;
--- slightly beneficial to determine;
-X- initially auspicious, in the end disordered.
---

second yin:
The wife loses her hair;
do not follow,
in seven days you will get it.

- - 18. Ru (5. Xu)
--- Moistened.
- - There is a return;
--- radiant receipt;
--- determination is auspicious;
--- beneficial to ford the great river.

$
Dec 7 '05 #4

Jordan Abel schrieb:
On 2005-12-07, SSG <ss****@gmail.com> wrote:
I tried one lex, yacc program, but it says the error

yacc: e - line 349 of "comp_y.y", a token appears on the lhs of a
production

can anyone tell me about the error..

How to solve it...

By
SSG


It's really not on-topic for here, but there's really no way to tell
without line 349 and possibly context around it


A qualified guess is that the symbol on the left hand side of line 349
was declared as token earlier. But, on the left hand side of a grammar
rule, only non terminal symbols make sense.

Dec 7 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Moonlit | last post by:
Hi, I am searching for the best lex and yacc combination (or something similar) that can be used in combination with C++ and that can contain C++ code. I have the regular flex/bison port working...
4
by: Profetas | last post by:
Hi. I was wondering how can I access the yacc functions? because when use a normal yacc function such as qstring { yylval.string = strdup(yytext+1); if(yylval.string !='"')...
4
by: Rodrick Brown | last post by:
This might be off topic but can someone give me a quick run down on why tools like lexx/yacc/bison are usefull ? I know what there used for but not sure when they should be used and where ? ...
3
by: John Sasso | last post by:
In my Yacc .y file I defined: %union { int value; struct Symbol Sym; } The Symbol struct I defined in a header file I #included in the Prologue section of the .y file as:
6
by: Volker Hetzer | last post by:
Hi! We are finding ourselves in a situation where we have to parse several more or less free format text files. In the past, on linux, we had flex and bison for generating very fast parsers for...
13
by: Berk Birand | last post by:
Hi, I am working on a school project where we use lex/yacc to write a compiler for a fictional (Java-like) language. I have handled all the details about the yacc and lex files, but I still have...
2
by: max.giacometti | last post by:
Hi everybody! I am using lex and yacc to write a vhdl to systemc converter. Lex simply reads the input file and yacc implements grammar and translation. I'd like to be able to make yacc...
2
by: Xose Lois Castro | last post by:
Hi, mates: I'm trying to write a grammar to read files with the following structure, for example: text ... more text
1
by: Robert | last post by:
If the goal is to take a 1-dimensional package of text and produce a tree data structure that is easy to understand and manipulate, and then write C/C++ code that works with that tree - does...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.