+ 4

Q: How to build a simple compiler using Java programming

https://www.sololearn.com/discuss/1009319/?ref=app

22nd Jan 2018, 6:44 PM
AU Hameed
AU Hameed - avatar
11 Respostas
+ 4
I don't have source in Java for anything simple. My compilers were written in Pascal and C and weren't simple. I don't have access to them as they were done in 70's. The following is source for a Pascal compiler as it is the simplest I know. https://homepages.cwi.nl/~steven/pascal/pcom.p
22nd Jan 2018, 7:14 PM
John Wells
John Wells - avatar
+ 5
The full source code for the Java compiler is available via web search. However, it is extremely complex and, without a compiler theory course, you will be left confused. I learned compiler theory by reading an existing Pascal compiler. When I eventually took a class, they failed to teach me anything except optimization techniques.
22nd Jan 2018, 7:28 PM
John Wells
John Wells - avatar
+ 4
If you have any questions about Pascal or what they are doing ask. Discord would be best as I get hundreds of notifications a day and might miss posts here, but we can continue here.
22nd Jan 2018, 7:52 PM
John Wells
John Wells - avatar
+ 3
I am unsure why you linked the advanced programmer post. I've written compiler's before, join us here and we can chat. https://www.sololearn.com/Discuss/689391/?ref=app
22nd Jan 2018, 6:51 PM
John Wells
John Wells - avatar
+ 3
I need the source code please
22nd Jan 2018, 6:58 PM
AU Hameed
AU Hameed - avatar
+ 3
OK thanks
22nd Jan 2018, 7:16 PM
AU Hameed
AU Hameed - avatar
+ 3
Yes. I am studying compiler construction using the book by Anthony J Dos Reis compiler construction using Java, JavaCC and Yacc
22nd Jan 2018, 7:37 PM
AU Hameed
AU Hameed - avatar
+ 3
Alright. Appreciate it
22nd Jan 2018, 8:02 PM
AU Hameed
AU Hameed - avatar
+ 3
Thank you
22nd Jan 2018, 8:03 PM
AU Hameed
AU Hameed - avatar
+ 3
Based on reviews and book overview it is a good first book, but you will need a second more detailed book to advance.
22nd Jan 2018, 8:06 PM
John Wells
John Wells - avatar
+ 2
The book is somehow complex
22nd Jan 2018, 8:40 PM
AU Hameed
AU Hameed - avatar