CE Home
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Computer Science & IT Engineering
Notices


Advertisements
Reply
 
LinkBack Thread Tools Display Modes

  #11 (permalink)
Old 7th March 2008, 04:44 PM
CE - Regular Member
 
pradeep_agrawal's Avatar
 
Join Date: 4th May 2006
I'm a Crazy Computer Engineer
Posts: 50
Default Re: help for writing compliers

Quote:
Originally Posted by sahana View Post

do i have to store the TC and this parser generator software in same folder?
No, you don't need to keep the TC and lex tool in the same folder.

Basically, while writing lex programs, you specify tokens and the action to be performed when that token is found.

When you compile your lex program (like the one given above), it will generate a .c file that contain c code for the specified task.

Now, you have to take that c file and need to compile with TC or any other compiler (i will suggest gcc) and you gets the executable which when executed performs the task.

-Pradeep
pradeep_agrawal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)
Old 16th March 2008, 11:56 PM
CE - Apprentice
 
Join Date: 25th September 2006
Location: chennai
I'm a Crazy computer science Engineer
Posts: 36
Default Re: help for writing compliers

i do get a c file,my c file is not getting compiled by TC.should i go necessarily for gcc,that means i have to install linux?i hope borland c++ compiler is same as turboc. coz i guess this parser generator software is compatible with borland c++
sahana is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)
Old 17th March 2008, 12:23 PM
CE - Regular Member
 
pradeep_agrawal's Avatar
 
Join Date: 4th May 2006
I'm a Crazy Computer Engineer
Posts: 50
Default Re: help for writing compliers

Quote:
Originally Posted by sahana View Post
should i go necessarily for gcc
I would always recommend to use gcc over TC.

Quote:
Originally Posted by sahana View Post
that means i have to install linux?
No need to install Linux, use cygwin available at Cygwin Information and Installation or use GCW (gcc for windows) available at SourceForge.net: gcw. Gcc for Windows

-Pradeep
pradeep_agrawal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +5.5. The time now is 12:07 PM.
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.

Advertisements