CrazyEngineers Forum

******************************************
Welcome To CrazyEngineers (CE) – an online community of engineers from all over the world! With the younger CEan at 84 and the youngest at 16, CE boasts of professional engineers, students, professors, entrepreneurs, CEOs, geeks & nerds. We exchange innovative ideas, share knowledge, help each other and expand our worldwide network of engineers! You need not have a formal degree in engineering to be a part of CrazyEngineers! Need we say more?
Join CE! | Be a CE Ambassador! | Forgot password? | Sponsor CE | Contact Us
Navigation
Go Back   CrazyEngineers Forum > CE : Technical Discussions > Computer Science & IT Engineering
Reply

  #1 (permalink)
Old 2nd March 2008, 09:15 PM
CE - Apprentice
 
I'm a Crazy computer science Engineer
Join Date: 25th September 2006
Location: chennai
Posts: 36
Default help for writing compliers

hi.i need to write yacc and lex programs.so do i have to necessarily load unix?i came across some thing called cygwin.so is it helpful?all i need is to write yacc and lex programs not specific about any os and i dont know how to boot unix all by my self.please help wanted urgently.
sahana is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
  #2 (permalink)
Old 2nd March 2008, 10:45 PM
CE - Addict
 
friendster7's Avatar
 
I'm a Crazy Computer Science Engineer
Join Date: 4th February 2008
Location: india,karnataka
Posts: 386
Send a message via Yahoo to friendster7
Default Re: help for writing compliers

hey i found a some information do check out..is is a software
Parser Generator is a YACC and Lex programming tool for Windows. As well as including a Graphical User Interface, the software also includes two versions of YACC and Lex, called AYACC and ALex. Parser Generator is able to generate C, C++ and Java parsers and lexical analysers. This includes both Unicode and Multibyte Character Set (MBCS) variants. In your applications you can create multiple, thread safe, instances of these parsers and lexical analysers. Direct support is provided with Parser Generator for Visual C++ and Borland C++ and C++Builder.
friendster7 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)
Old 2nd March 2008, 10:48 PM
CE - Addict
 
friendster7's Avatar
 
I'm a Crazy Computer Science Engineer
Join Date: 4th February 2008
Location: india,karnataka
Posts: 386
Send a message via Yahoo to friendster7
Default Re: help for writing compliers

here is the link for download..hope it helps

note:-source net
friendster7 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)
Old 2nd March 2008, 10:51 PM
CE - Addict
 
friendster7's Avatar
 
I'm a Crazy Computer Science Engineer
Join Date: 4th February 2008
Location: india,karnataka
Posts: 386
Send a message via Yahoo to friendster7
Default Re: help for writing compliers

if u do find it difficult the best way is to install linux.it is same as how u install windows xp.do partion ur hard disk and install the linux os in that partion..

and u can execute the programs their..

hope it helps
friendster7 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)
Old 3rd March 2008, 10:43 AM
CE - Apprentice
 
pradeep_agrawal's Avatar
 
I'm a Crazy Computer Engineer
Join Date: 4th May 2006
Posts: 48
Default Re: help for writing compliers

For more details on Lex and YACC, refer forum thread

linux language development tools

Also, look at the link Free Compiler Construction Tools: Lexers, Parser Generators, Optimizers (thefreecountry.com)

-Pradeep

Last edited by pradeep_agrawal : 3rd March 2008 at 04:25 PM.
pradeep_agrawal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)
Old 4th March 2008, 09:53 PM
CE - Apprentice
 
I'm a Crazy computer science Engineer
Join Date: 25th September 2006
Location: chennai
Posts: 36
Default Re: help for writing compliers

Thanks a ton friendster7 and pradeep.
sahana is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)
Old 4th March 2008, 09:53 PM
Good Administrator
 
The_Big_K's Avatar
 
I'm a Crazy Electrical Engineer
Join Date: 26th November 2005
Location: Terra-Firma
Posts: 4,996
Send a message via Yahoo to The_Big_K
Default Re: help for writing compliers

[off topic]
Pradeep, I know you're a Linux Guru. How about starting development activity on CE forums? Possible or its just too big for us (at this point). ?
The_Big_K is online now  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)
Old 4th March 2008, 10:05 PM
CE - Addict
 
friendster7's Avatar
 
I'm a Crazy Computer Science Engineer
Join Date: 4th February 2008
Location: india,karnataka
Posts: 386
Send a message via Yahoo to friendster7
Default Re: help for writing compliers

Quote:
Originally Posted by sahana View Post
Thanks a ton friendster7 and pradeep.
ur welcome sahana..hope i get help here too..
__________________
Vinay Is Cool..

ha ha ha
friendster7 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)
Old 5th March 2008, 10:09 AM
CE - Apprentice
 
pradeep_agrawal's Avatar
 
I'm a Crazy Computer Engineer
Join Date: 4th May 2006
Posts: 48
Default Re: help for writing compliers

Quote:
Originally Posted by sahana View Post
Thanks a ton friendster7 and pradeep.
Welcome Sahana.


Quote:
Originally Posted by The_Big_K View Post
Pradeep, I know you're a Linux Guru. How about starting development activity on CE forums? Possible or its just too big for us (at this point). ?
Thanks for your appreciation Big K, but the word 'Guru' will be too big for me. I am also beginner in Linux and i am sure many people here will be knowing more then me. Cheers to all CE's

But i am always ready for any such knowledge sharing activities.

-Pradeep
pradeep_agrawal is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)
Old 6th March 2008, 10:47 PM
CE - Apprentice
 
I'm a Crazy computer science Engineer
Join Date: 25th September 2006
Location: chennai
Posts: 36
Default Re: help for writing compliers

hi.i dont think i understood this software ie parser generator too good.do i have to store the TC and this parser generator software in same folder?

i have to write a source program and have to identify the tokens of my c input file.say my lex program is
%{
%}
%%
"girl1" !"girl2" {printf("noun");}
%%
void main()
{FILE *fp1;
fp1=fopen("in.c","read");
yyin=fp1;
yylex();
}
and my c program is
in.c

girl1 sings girl2 dances

so my i first compile my lex program.then will the tokens be generated automatically?incase of unix,lex tool ie lex prgname.l is used right.what do i do in this case?
sahana is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored links
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB 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 10:05 PM.
Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Member comments are owned by the poster. Copyright © 2005-2008 CrazyEngineers.com. All rights reserved.Ad Management by RedTyger