LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2014, 04:59 AM   #1
kislay
LQ Newbie
 
Registered: Nov 2014
Posts: 1

Rep: Reputation: Disabled
i am trying to run a yaac program it counters error as y.tab.c not exist


i am running a yaac program states that
cc: error: y.tab.c: No such file or directory
how to resolve plzz help
 
Old 11-25-2014, 09:07 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,602

Rep: Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241Reputation: 1241
It depends on what you are trying to do.

The y.tab.c is a definition file that contains values for the terminal symbols used to interface with a scanner. This is automatically generated if you use flex to create the scanner.

Depending on the language of course. Flex scanners are not necessarily optimal for a given language (rather sucky for things like python which use white space to determine blocks - possible, but it gets tricky).

Bison+flex is the usual way to generate context free languages (LR(1)), and has some features that allow for the use of ambiguous grammar specifications.

The order of compilation is for flex to be run first (generating the y.tab.c file), then bison/yacc afterward.

This is normally handled by dependencies specified for make.

A very simple example of the combination of bison and flex is shown at http://en.wikipedia.org/wiki/GNU_bison

The details on flex are available at http://flex.sourceforge.net/manual/index.html#Top

Last edited by jpollard; 11-25-2014 at 09:14 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Threading program with various counters pratham29 Linux - Newbie 6 11-03-2013 10:32 AM
error when run java program vanhelsing Programming 8 12-24-2004 03:23 AM
Error when program is run JSmith Programming 1 09-17-2004 09:52 PM
Smtp/run file does not exist error when starting Qmail newlinuxgeek Linux - General 3 03-30-2004 05:53 AM
Flex and yaac problem Ilektro Linux - Software 2 12-06-2002 07:38 AM


All times are GMT -5. The time now is 07:09 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration