|
Языки программирования семейства Pascal / Новые книги
|
|
---|---|
#18+
Crafting Interpreters by Robert Nystromссылка на амазон https://www.amazon.com/Crafting-Interpreters-Robert-Nystrom/dp/0990582930 Вот эту книгу прям очень хвалят. На Java делает сначала интерпретатор, а потом виртуальную машину на C. Хорошо объясняет теорию создания интерпретаторов. Я начал читать, хоть и продолжу на паскале пока. ссылка для скачивания https://cloud.mail.ru/public/mpTz/yGX3bb9ye ... |
|
:
|
|
30.08.2023, 20:16 |
|
Языки программирования семейства Pascal / Новые книги
|
|||
---|---|---|---|
#18+
Букинистика :) on Pascal Compilers Книга 1985го года. Как делать компиляторы на паскале, нашел ее упоминание на форуме как чуть ли не лучшую книгу по созданию компиляторов.ссылка на амазон https://www.amazon.com/Brinch-Hansen-Pascal-Compilers/dp/0130830984 ссылка для скачивания https://cloud.mail.ru/public/L87Q/BcobE2f4A ... |
|||
:
Нравится:
Не нравится:
|
|||
07.09.2023, 10:09 |
|
Языки программирования семейства Pascal / Новые книги
|
|||
---|---|---|---|
#18+
Комментарий об этой книге. The best compiler book! This is a practical book, ideal for study. If you get stuck with other compiler books, don't hesitate to buy this one. This book is undoubtedly the best compiler book. And I think it always will be. Brinch tells you the steps of creating a Pascal-like compiler, clearly stating the correct way to get the results. You don't need a PhD to create a compiler. If you follow the book, there are numerous code examples, and there is an entire listing in the appendix. The book has no typos, the code fragments are concise and understandable, and there is no missing code. In about 1000 lines, a non-trivial compiler can be written. You can easily adjust the code to make your compiler of choice. Some things to be aware of: 1) The book was written in the old DOS days. This is an advantage because the author had to keep the code small while making it as powerful as possible. 2) I expected the book to teach me how to compile to a DOS native EXE program. Unfortunately, it doesn't. The book is about creating interpretive-compilers, which involve a Virtual Machine. The VM used is simple, and is stack based. If you want an executable, you can still do it. You'd just have to write code that maps the virtual machine code to a real CPU. To do that, you'd need the specs of the CPU. 3) The book doesn't use object-oriented-programming. The procedural style of the code makes for easy reading and once you understand it, you will be in a good position to create your own language (even an OO one). 4) The Virtual Machine is stack-based. This results in ease of compiler creation. Most other compiler books are more advanced and use registers instead of stacks. You only need to use registers if you want to write an optimising compiler, which this book does not teach you. 5) The book uses a top-down, recursive descent, parser. This is the best way to handcraft a compiler. Many compilers use this type of parser. They are simple enough that you can easily code them. Most books on compilers teach too much theory, especially trying to explain DFA and then telling you that it's too hard to hand-code, so you should tools like lex and yacc. I've found it much better to simply hand-code these first 2 stages. In that way, you get a perfect knowledge of its workings. 6) The best method of error-recovery is given 7) There is some formal maths but the English explanations make it understandable. Hopefully the publishers will reprint this book. Otherwise, grab a copy asap. ... |
|||
:
Изменено: 07.09.2023, 10:19 - Неуловимый Джо
Нравится:
Не нравится:
|
|||
07.09.2023, 10:11 |
|
Языки программирования семейства Pascal / Новые книги
|
|||
---|---|---|---|
#18+
Classic work on the topic walks you through a complete implementation of a recursive descent parser. We used this book in a compiler class many years ago along with the Dragon Book. Personally, I found this one more useful and practical than the Dragon Book over the years. With the Dragon Book you'll get a good survey of compilers and compiler strategies and shift reduce parsing. With this book, it will walk you tutorial style step by step through implementation of a recursive descent parser. ... |
|||
:
Изменено: 07.09.2023, 10:19 - Неуловимый Джо
Нравится:
Не нравится:
|
|||
07.09.2023, 10:17 |
|
Языки программирования семейства Pascal / Новые книги
|
|||
---|---|---|---|
#18+
Компилятор как следующий шаг после интерпретатора ) Правда тут делается не exe файл, а создается виртуальная машина типа явы. Вообще, интерпретатор как пет-проект классная вещь, и не сказать что слишком сложно, и в то же время затрагивает много областей языка. Хорошо для тренировки в делфях. ... |
|||
:
Нравится:
Не нравится:
|
|||
07.09.2023, 10:22 |
|
Языки программирования семейства Pascal / Новые книги
#530243
Ссылка:
Ссылка на сообщение:
Ссылка с названием темы:
Ссылка на профиль пользователя:
Ссылка на вложение:
|
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
#18+
on Pascal Compilers ... |
||||||||||||||||
:
Нравится:
Не нравится:
|
||||||||||||||||
07.09.2023, 12:14 |
|
Языки программирования семейства Pascal / Новые книги
#530401
Ссылка:
Ссылка на сообщение:
Ссылка с названием темы:
Ссылка на профиль пользователя:
Ссылка на вложение:
|
||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
#18+
... |
||||||||||||||||
:
Нравится:
Не нравится:
|
||||||||||||||||
07.09.2023, 14:00 |
|
|
Start [/forum/search.php?do_search=1&tid=10916&author_mode=wrote_post&author=%D0%9D%D0%B5%D1%83%D0%BB%D0%BE%D0%B2%D0%B8%D0%BC%D1%8B%D0%B9%20%D0%94%D0%B6%D0%BE&start_from=521879]: |
0ms |
get settings: |
0ms |
get forum list: |
11ms |
searching: |
11ms |
get settings: |
1ms |
get forum list: |
5ms |
get topic data: |
6ms |
check forum access: |
0ms |
check topic access: |
0ms |
get forum data: |
0ms |
get found posts: |
31ms |
track hit: |
34ms |
get online users: |
49ms |
check new: |
1ms |
others: | 340ms |
total: | 489ms |
0 / 0 |