Connecting Tech Pros Worldwide Help | Site Map

compiler front end

  #1  
Old November 17th, 2008, 08:05 AM
vaib
Guest
 
Posts: n/a
hi all ,

I am willing to write a compiler front-end for my semester
project . I am studying compilers in my present semester and I am
following the Dragon Book for the theory and Allen I. Holub's Compiler
Design in C for the _actual stuff_ .
.. Although I must admit that as of now I am not able to make out
much out of Holub's book since I am not through with the theory yet
but I have come to understand that it would be much easier to go
through it once I complete the theory . As of now I am almost done
with the front-end theory and so I want to design a compiler front-end
( lexer and parser ) .
Now there are certain issues that i am facing . First of all,
I need to have a grammar so that I would know what all terminals
( tokens ) I have to use . This would be required for the design of
the lexer . Having the grammar would also solve many issues regarding
the parser too .
Can anyone suggest me a simple context-free grammar ? I'd
highly appreciate it . I would also stick to this thread for any other
issues that I face while designing the front-end .
Thanking in anticipation . Vaib .
  #2  
Old November 17th, 2008, 11:25 AM
Bartc
Guest
 
Posts: n/a

re: compiler front end



"vaib" <vaibhavpanghal@gmail.comwrote in message
news:4c1614a6-1d9b-4dd2-97fc-ff644fef8c8d@i18g2000prf.googlegroups.com...
Quote:
hi all ,
>
I am willing to write a compiler front-end for my semester
project .
Quote:
>First of all,
I need to have a grammar so that I would know what all terminals
( tokens ) I have to use . This would be required for the design of
the lexer . Having the grammar would also solve many issues regarding
the parser too .
Can anyone suggest me a simple context-free grammar ? I'd
highly appreciate it .
Try posting to comp.compilers where someone might know what you're on about.

--
Bartc

  #3  
Old November 18th, 2008, 01:05 AM
Gene
Guest
 
Posts: n/a

re: compiler front end


On Nov 17, 3:02*am, vaib <vaibhavpang...@gmail.comwrote:
Quote:
hi all ,
>
* * * * *I am willing to write a compiler front-end for my semester
project . I am studying compilers in my present semester and I am
following the Dragon Book for the theory and Allen I. Holub's Compiler
Design in C for the _actual stuff_ .
. * * * Although I must admit that as of now I am not able to make out
much out of Holub's book since I am not through with the theory yet
but I have come to understand that it would be much easier to go
through it once I complete the theory . As of now I am almost done
with the front-end theory and so I want to design a compiler front-end
( lexer and parser ) .
* * * * Now there are certain issues that i am facing . First of all,
I need to have a grammar so that I would know what all terminals
( tokens ) I have to use . This would be required for the design of
the lexer . Having the grammar would also solve many issues regarding
the parser too .
* * * * Can anyone suggest me a simple context-free grammar ? I'd
highly appreciate it . I would also stick to this thread for any other
issues that I face while designing the front-end .
* * * * * * * * * * * *Thanking in anticipation .Vaib .
There is a small grammar that's nice for learning in the appendix of
this text:
http://www.cs.sjsu.edu/~louden/cmptext/

There is also one in Wirth's old book:
http://www.amazon.com/Algorithms-Str.../dp/0130224189

You will get more help at comp.compilers.


  #4  
Old November 18th, 2008, 05:25 PM
vaib
Guest
 
Posts: n/a

re: compiler front end


On Nov 18, 6:00*am, Gene <gene.ress...@gmail.comwrote:
Quote:
On Nov 17, 3:02*am, vaib <vaibhavpang...@gmail.comwrote:
>
>
>
Quote:
hi all ,
>
Quote:
* * * * *I am willing to write a compiler front-end for my semester
project . I am studying compilers in my present semester and I am
following the Dragon Book for the theory and Allen I. Holub's Compiler
Design in C for the _actual stuff_ .
. * * * Although I must admit that as of now I am not able to make out
much out of Holub's book since I am not through with the theory yet
but I have come to understand that it would be much easier to go
through it once I complete the theory . As of now I am almost done
with the front-end theory and so I want to design a compiler front-end
( lexer and parser ) .
* * * * Now there are certain issues that i am facing . First of all,
I need to have a grammar so that I would know what all terminals
( tokens ) I have to use . This would be required for the design of
the lexer . Having the grammar would also solve many issues regarding
the parser too .
* * * * Can anyone suggest me a simple context-free grammar ? I'd
highly appreciate it . I would also stick to this thread for any other
issues that I face while designing the front-end .
* * * * * * * * * * * *Thanking in anticipation. Vaib .
>
There is a small grammar that's nice for learning in the appendix of
this text:http://www.cs.sjsu.edu/~louden/cmptext/
>
There is also one in Wirth's old book:http://www.amazon.com/Algorithms-Str...ll-Automatic-C...
>
You will get more help at comp.compilers.
thank you for your reply . i'll try that out . and thank you Bartc
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
compiler front-end vaib answers 1 November 19th, 2008 04:55 PM
Re: compiler front-end eerpini answers 2 November 19th, 2008 03:15 PM
compiler front-end vaib answers 0 November 18th, 2008 05:25 PM
Disadvantage of Access as front-end Yannick Turgeon answers 49 November 13th, 2005 02:37 AM