Writing a compiler, need litle guidence
I want to write a simple language compiler for learning purposes. Here is the grammar :
S -> expr | int | float
expr -> <int> + <int> | <float> + <float>
Now that I know the grammar for my language can someone guide me what next? I know there a lot of books there like flex and yacc, compilers books, but i think i will learn a lot more if i break the ice with something simple first, these books confuse, so please help this guy
By the way I am experience programmer, but in other areas, i am familiar with grammar, finite state machines, assembly language, as high level, and more so i can understand if you guide me a litle.
Thank you
-
Mr. Enthusiastic -
Thanks - 1 reply
{{ DiscussionBoard.errors[1455971].message }}-
Bewley -
Thanks
{{ DiscussionBoard.errors[1459150].message }} -
-
-
HomeBizNizz -
Thanks
{{ DiscussionBoard.errors[1458504].message }} -
-
CDarklock -
[ 1 ] Thanks
Signature"The Golden Town is the Golden Town no longer. They have sold their pillars for brass and their temples for money, they have made coins out of their golden doors. It is become a dark town full of trouble, there is no ease in its streets, beauty has left it and the old songs are gone." - Lord Dunsany, The Messengers{{ DiscussionBoard.errors[1458839].message }} -
-
wayfarer -
Thanks
SignatureI build web things, server things. I help build the startup Veenome. | Remote Programming Jobs{{ DiscussionBoard.errors[1459506].message }} -
-
Mr. Enthusiastic -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[1459683].message }}-
highrider21 -
Thanks - 1 reply
Signature{{ DiscussionBoard.errors[1486261].message }}-
xiaophil -
Thanks
{{ DiscussionBoard.errors[1486697].message }} -
-
-
-
Mr. Enthusiastic -
Thanks
{{ DiscussionBoard.errors[1491728].message }} -