LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2005, 10:49 PM   #1
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Rep: Reputation: 30
Bison and Yacc Compatibility Problem


Hi,

I'm writing a compiler for a subset of Pascal (Appendix A from the Dragon Book). I've been given the lex and yacc files to get me started. The pascal.y file works fine using yacc, but when I use bison, I get the following errors:

Code:
pascal.y:84: type clash (`' `symb') on default action
pascal.y:137: type clash (`' `symb') on default action
pascal.y:138: type clash (`' `symb') on default action
pascal.y:141: type clash (`' `symb') on default action
pascal.y:142: type clash (`' `symb') on default action
pascal.y:172: type clash (`' `symb') on default action
pascal.y:173: type clash (`' `symb') on default action
pascal.y:174: type clash (`' `symb') on default action
I'm not sure what these errors mean, and why I only get them in Bison and not in Yacc. Does anyone have any idea?


I can post the pascal.y file, but I thought maybe this is a common error between Bison and Yacc.

Thanks for any help.
 
Old 10-23-2005, 10:56 PM   #2
oulevon
Member
 
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 438

Original Poster
Rep: Reputation: 30
I think I may have found the source of the problem. I was using an older version of Bison. On a newer version it seems to work fine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yacc problem zchoyt Programming 0 03-23-2005 08:23 AM
Problem with binutils first pass / bison & flex installation peristaltic Linux From Scratch 3 03-20-2005 10:17 AM
problem with yacc fssengg Programming 3 03-09-2005 10:56 AM
bison, flex and make problem ChimpFace9000 Programming 4 05-19-2002 07:49 PM
yacc, Bison Config Linux - General 6 02-21-2002 02:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration