I’m right now kinda desperate. We got this assignment (C- Parser) like around one and a half week back and I’ve been ‘maghaz maar-ing’ on it ever since but couldn’t do it. Transforming the BNF to EBNF wasn’t a problem - the problem is with implementing (using C Language). It should’ve been simple since a complete Tiny Language Parser (and compiler) is given at the end of the book (Kenneth Louden), but still I haven’t been able to do it!
I did search the net for any hints, guidance waghaira but couldn’t find anything - I see there are a lot of schools out there that teach the same book (i.e., Louden) but I couldn’t find any helpful site.
I was hopin’ if somebody here knew a good resource to look at…
I did a project, we had to make a C compiler... I hope you have a good BNF to follow up...
Are you done with the symbol table? Lexical analyzer (tokenizer)? Are you making a linker as well?
ah! good ol' memories sigh
[QUOTE]
*Originally posted by Spock: *
I did a project, we had to make a C compiler... I hope you have a good BNF to follow up...
Are you done with the symbol table? Lexical analyzer (tokenizer)? Are you making a linker as well?
[/QUOTE]
We're making a C minus compiler - it's a simpler language as compared to C... yup, I've converted it's grammer into Extended BNF.
The symbol table (or Semantic analyzer) would be next. As for the scanner (tokenizer) - we did it as the first assignment. I can make Parser with YACC - but that isn't allowed. I'm still looking for help!
Our last assignment would be the code generator - dunno if it includes linking or not.