Build Your Own Programming Language
- Type:
- Other > E-books
- Files:
- 282
- Size:
- 6.94 MiB (7276461 Bytes)
- Uploaded:
- 2022-01-03 16:08:07 GMT
- By:
- tuts756
- Seeders:
- 0
- Leechers:
- 1
- Comments
- 0
- Info Hash: 11A73E6E548F901C11EA1726BDAA18F10528DBE2
(Problems with magnets links are fixed by upgrading your torrent client!)
Description The need for different types of computer languages is growing rapidly and developers prefer creating domain-specific languages for solving specific application domain problems. Building your own programming language has its advantages. It can be your antidote to the ever-increasing size and complexity of software. However, creating a custom language isn’t easy. In this book, you’ll be able to put the knowledge you gain to work in language design and implementation. You’ll implement the frontend of a compiler for your language, including a lexical analyzer and parser. The book covers a series of traversals of syntax trees, culminating with code generation for a bytecode virtual machine. Moving ahead, you’ll learn how domain-specific language (DSL) features are often best represented by operators and functions that are built into the language, rather than library functions. The book concludes by showing you how to implement garbage collection, including reference counting and mark-and-sweep garbage collection. Throughout the book, Dr. Jeffery weaves in his experience of building the Unicon programming language to give better context to the concepts, while providing relevant examples in Unicon and Java. By the end of this book, you’ll be able to build and deploy your own domain-specific languages, capable of compiling and running programs. What you will learn Perform requirements analysis for the new language and design language syntax and semantics Write lexical and context-free grammar rules for common expressions and control structures Develop a scanner that reads source code and generate a parser that checks syntax Build key data structures in a compiler and use your compiler to build a syntax-coloring code editor Implement a bytecode interpreter and run bytecode generated by your compiler Write tree traversals that insert information into the syntax tree Implement garbage collection in your language Who this book is for This book is for software developers interested in the idea of inventing their own language or developing a domain-specific language. Computer science students taking compiler construction courses will also find this book highly useful as a practical guide to language implementation to supplement more theoretical textbooks. Intermediate-level knowledge and experience working with a high-level language such as Java or the C++ language are expected to help you get the most out of this book. Book Details Language: English Published: 2021 ISBN: 1800204809 Format: True PDF + Code
Build Your Own Programming Language/Build Your Own Programming Language.pdf | 5.76 MiB |
Downloaded from BookRAR.Org.txt | 62 B |
Torrent Downloaded from Glodls.to.txt | 237 B |
[TGx]Downloaded from torrentgalaxy.to .txt | 585 B |
Build Your Own Programming Language/Code/LICENSE | 1.04 KiB |
Build Your Own Programming Language/Code/README.md | 4.56 KiB |
Build Your Own Programming Language/Code/ch3/dorrie.in | 2 B |
Build Your Own Programming Language/Code/ch3/dorrie2.in | 27 B |
Build Your Own Programming Language/Code/ch3/hello.java | 12 B |
Build Your Own Programming Language/Code/ch3/j0.icn | 1.17 KiB |
Build Your Own Programming Language/Code/ch3/j0.java | 98 B |
Build Your Own Programming Language/Code/ch3/j0go.icn | 1.45 KiB |
Build Your Own Programming Language/Code/ch3/j0go.java | 1.76 KiB |
Build Your Own Programming Language/Code/ch3/javalex.l | 3.03 KiB |
Build Your Own Programming Language/Code/ch3/nnws-tok.l | 212 B |
Build Your Own Programming Language/Code/ch3/nnws.l | 137 B |
Build Your Own Programming Language/Code/ch3/parser.java | 1.27 KiB |
Build Your Own Programming Language/Code/ch3/simple.icn | 211 B |
Build Your Own Programming Language/Code/ch3/simple.java | 63 B |
Build Your Own Programming Language/Code/ch3/simple2.icn | 536 B |
Build Your Own Programming Language/Code/ch3/simple2.java | 881 B |
Build Your Own Programming Language/Code/ch3/token.java | 179 B |
Build Your Own Programming Language/Code/ch4/dorrie3.in | 16 B |
Build Your Own Programming Language/Code/ch4/hello.java | 115 B |
Build Your Own Programming Language/Code/ch4/helloerror.java | 114 B |
Build Your Own Programming Language/Code/ch4/j0.icn | 1.48 KiB |
Build Your Own Programming Language/Code/ch4/j0.java | 1.38 KiB |
Build Your Own Programming Language/Code/ch4/j0go.icn | 1.41 KiB |
Build Your Own Programming Language/Code/ch4/j0go.java | 1.71 KiB |
Build Your Own Programming Language/Code/ch4/j0gram.icn | 27.21 KiB |
Build Your Own Programming Language/Code/ch4/j0gram.y | 3.31 KiB |
Build Your Own Programming Language/Code/ch4/j0gram_tab.icn | 826 B |
Build Your Own Programming Language/Code/ch4/javalex.icn | 101.86 KiB |
Build Your Own Programming Language/Code/ch4/javalex.l | 3.07 KiB |
Build Your Own Programming Language/Code/ch4/jzero.java | 302 B |
Build Your Own Programming Language/Code/ch4/lexer.java | 61 B |
Build Your Own Programming Language/Code/ch4/nameseq.y | 112 B |
Build Your Own Programming Language/Code/ch4/nnws.l | 17 B |
Build Your Own Programming Language/Code/ch4/ns.icn | 8.62 KiB |
Build Your Own Programming Language/Code/ch4/ns.y | 75 B |
Build Your Own Programming Language/Code/ch4/ns_tab.icn | 73 B |
Build Your Own Programming Language/Code/ch4/Parser.java | 14.58 KiB |
Build Your Own Programming Language/Code/ch4/parserTokens.java | 1.16 KiB |
Build Your Own Programming Language/Code/ch4/parserVal.java | 1.19 KiB |
Build Your Own Programming Language/Code/ch4/token.java | 184 B |
Build Your Own Programming Language/Code/ch4/trivial.icn | 251 B |
Build Your Own Programming Language/Code/ch4/trivial.java | 28 B |
Build Your Own Programming Language/Code/ch4/yyerror.icn | 37 B |
Build Your Own Programming Language/Code/ch4/yyerror.java | 138 B |
Build Your Own Programming Language/Code/ch4/Yylex.java | 17.37 KiB |
Build Your Own Programming Language/Code/ch5/cereal.icn | 117 B |
Build Your Own Programming Language/Code/ch5/hello.java | 115 B |
Build Your Own Programming Language/Code/ch5/helloerror.java | 114 B |
Build Your Own Programming Language/Code/ch5/j0.icn | 844 B |
Build Your Own Programming Language/Code/ch5/j0.java | 1.88 KiB |
Build Your Own Programming Language/Code/ch5/j0gram.icn | 31 KiB |
Build Your Own Programming Language/Code/ch5/j0gram.y | 5.02 KiB |
Build Your Own Programming Language/Code/ch5/j0gram_tab.icn | 826 B |
Build Your Own Programming Language/Code/ch5/javalex.icn | 101.86 KiB |
Build Your Own Programming Language/Code/ch5/javalex.l | 3.07 KiB |
Build Your Own Programming Language/Code/ch5/makefile | 823 B |
Build Your Own Programming Language/Code/ch5/parser.java | 37.23 KiB |
Build Your Own Programming Language/Code/ch5/parserVal.java | 1.19 KiB |
Build Your Own Programming Language/Code/ch5/prodrule.java | 26 B |
Build Your Own Programming Language/Code/ch5/serial.icn | 118 B |
Build Your Own Programming Language/Code/ch5/serial.java | 111 B |
Build Your Own Programming Language/Code/ch5/token.icn | 705 B |
Build Your Own Programming Language/Code/ch5/token.java | 229 B |
Build Your Own Programming Language/Code/ch5/tree.icn | 1.71 KiB |
Build Your Own Programming Language/Code/ch5/tree.java | 2.52 KiB |
Build Your Own Programming Language/Code/ch5/xy5.java | 175 B |
Build Your Own Programming Language/Code/ch5/yyerror.icn | 37 B |
Build Your Own Programming Language/Code/ch5/yyerror.java | 2.1 KiB |
Build Your Own Programming Language/Code/ch5/Yylex.java | 28.55 KiB |
Build Your Own Programming Language/Code/ch6/hello.java | 115 B |
Build Your Own Programming Language/Code/ch6/helloerror.java | 114 B |
Build Your Own Programming Language/Code/ch6/j0.icn | 1.33 KiB |
Build Your Own Programming Language/Code/ch6/j0.java | 2.51 KiB |
Build Your Own Programming Language/Code/ch6/j0gram.y | 5.02 KiB |
Build Your Own Programming Language/Code/ch6/javalex.l | 3.07 KiB |
Build Your Own Programming Language/Code/ch6/makefile | 899 B |
Build Your Own Programming Language/Code/ch6/serial.icn | 118 B |
Build Your Own Programming Language/Code/ch6/serial.java | 111 B |
Build Your Own Programming Language/Code/ch6/symtab.icn | 39 B |
Build Your Own Programming Language/Code/ch6/symtab.java | 1.06 KiB |
Build Your Own Programming Language/Code/ch6/symtab_entry.icn | 19 B |
Build Your Own Programming Language/Code/ch6/symtab_entry.java | 551 B |
Build Your Own Programming Language/Code/ch6/token.icn | 705 B |
Build Your Own Programming Language/Code/ch6/token.java | 229 B |
Build Your Own Programming Language/Code/ch6/tree.icn | 3.77 KiB |
Build Your Own Programming Language/Code/ch6/tree.java | 4.94 KiB |
Build Your Own Programming Language/Code/ch6/xy5.java | 175 B |
Build Your Own Programming Language/Code/ch6/yyerror.icn | 37 B |
Build Your Own Programming Language/Code/ch6/yyerror.java | 2.1 KiB |
Build Your Own Programming Language/Code/ch7/arraytype.java | 163 B |
Build Your Own Programming Language/Code/ch7/classtype.java | 272 B |
Build Your Own Programming Language/Code/ch7/hello.java | 164 B |
Build Your Own Programming Language/Code/ch7/helloerror.java | 114 B |
Build Your Own Programming Language/Code/ch7/j0.icn | 1.54 KiB |
Build Your Own Programming Language/Code/ch7/j0.java | 2.8 KiB |
Build Your Own Programming Language/Code/ch7/j0gram.icn | 31.07 KiB |
Build Your Own Programming Language/Code/ch7/j0gram.y | 5.08 KiB |
Build Your Own Programming Language/Code/ch7/j0gram_tab.icn | 826 B |
Build Your Own Programming Language/Code/ch7/javalex.icn | 101.86 KiB |
Build Your Own Programming Language/Code/ch7/javalex.l | 3.07 KiB |
Build Your Own Programming Language/Code/ch7/makefile | 996 B |
Build Your Own Programming Language/Code/ch7/methodtype.java | 20 B |
Build Your Own Programming Language/Code/ch7/parameter.java | 141 B |
Build Your Own Programming Language/Code/ch7/parserVal.java | 1.19 KiB |
Build Your Own Programming Language/Code/ch7/serial.icn | 118 B |
Build Your Own Programming Language/Code/ch7/serial.java | 111 B |
Build Your Own Programming Language/Code/ch7/symtab.icn | 54 B |
Build Your Own Programming Language/Code/ch7/symtab.java | 1.25 KiB |
Build Your Own Programming Language/Code/ch7/symtab_entry.icn | 194 B |
Build Your Own Programming Language/Code/ch7/symtab_entry.java | 592 B |
Build Your Own Programming Language/Code/ch7/token.icn | 1.09 KiB |
Build Your Own Programming Language/Code/ch7/token.java | 894 B |
Build Your Own Programming Language/Code/ch7/tree.icn | 6.89 KiB |
Build Your Own Programming Language/Code/ch7/tree.java | 8.32 KiB |
Build Your Own Programming Language/Code/ch7/typeinfo.icn | 441 B |
Build Your Own Programming Language/Code/ch7/typeinfo.java | 197 B |
Build Your Own Programming Language/Code/ch7/xy5.java | 175 B |
Build Your Own Programming Language/Code/ch7/yyerror.icn | 37 B |
Build Your Own Programming Language/Code/ch7/yyerror.java | 2.1 KiB |
Build Your Own Programming Language/Code/ch7/Yylex.java | 28.55 KiB |
Build Your Own Programming Language/Code/ch8/arraytype.java | 266 B |
Build Your Own Programming Language/Code/ch8/arrtst.java | 209 B |
Build Your Own Programming Language/Code/ch8/classtype.java | 532 B |
Build Your Own Programming Language/Code/ch8/clstest.java | 161 B |
Build Your Own Programming Language/Code/ch8/funtest.java | 248 B |
Build Your Own Programming Language/Code/ch8/hello.java | 164 B |
Build Your Own Programming Language/Code/ch8/j0.icn | 1.71 KiB |
Build Your Own Programming Language/Code/ch8/j0.java | 2.82 KiB |
Build Your Own Programming Language/Code/ch8/j0gram.y | 5.43 KiB |
Build Your Own Programming Language/Code/ch8/javalex.l | 3.13 KiB |
Build Your Own Programming Language/Code/ch8/makefile | 996 B |
Build Your Own Programming Language/Code/ch8/methodtype.java | 519 B |
Build Your Own Programming Language/Code/ch8/parameter.java | 141 B |
Build Your Own Programming Language/Code/ch8/serial.icn | 118 B |
Build Your Own Programming Language/Code/ch8/serial.java | 111 B |
Build Your Own Programming Language/Code/ch8/symtab.icn | 54 B |
Build Your Own Programming Language/Code/ch8/symtab.java | 1.25 KiB |
Build Your Own Programming Language/Code/ch8/symtab_entry.icn | 234 B |
Build Your Own Programming Language/Code/ch8/symtab_entry.java | 592 B |
Build Your Own Programming Language/Code/ch8/token.icn | 1.32 KiB |
Build Your Own Programming Language/Code/ch8/token.java | 1.1 KiB |
Build Your Own Programming Language/Code/ch8/tree.icn | 11.95 KiB |
Build Your Own Programming Language/Code/ch8/tree.java | 13.75 KiB |
Build Your Own Programming Language/Code/ch8/typeinfo.icn | 832 B |
Build Your Own Programming Language/Code/ch8/typeinfo.java | 197 B |
Build Your Own Programming Language/Code/ch8/xy5.java | 175 B |
Build Your Own Programming Language/Code/ch8/yyerror.icn | 93 B |
Build Your Own Programming Language/Code/ch8/yyerror.java | 2.1 KiB |
Build Your Own Programming Language/Code/ch9/address.icn | 317 B |
Build Your Own Programming Language/Code/ch9/address.java | 502 B |
Build Your Own Programming Language/Code/ch9/arraytype.java | 266 B |
Build Your Own Programming Language/Code/ch9/arrtst.java | 209 B |
Build Your Own Programming Language/Code/ch9/classtype.java | 532 B |
Build Your Own Programming Language/Code/ch9/clstest.java | 161 B |
Build Your Own Programming Language/Code/ch9/funtest.java | 248 B |
Build Your Own Programming Language/Code/ch9/hello.java | 221 B |
Build Your Own Programming Language/Code/ch9/helloerror.java | 114 B |
Build Your Own Programming Language/Code/ch9/j0.icn | 1.91 KiB |
Build Your Own Programming Language/Code/ch9/j0.java | 3.14 KiB |
Build Your Own Programming Language/Code/ch9/j0gram.icn | 33.44 KiB |
Build Your Own Programming Language/Code/ch9/j0gram.y | 5.45 KiB |
Build Your Own Programming Language/Code/ch9/j0gram_tab.icn | 872 B |
Build Your Own Programming Language/Code/ch9/javalex.icn | 104.95 KiB |
Build Your Own Programming Language/Code/ch9/javalex.l | 3.13 KiB |
Build Your Own Programming Language/Code/ch9/makefile | 1.04 KiB |
Build Your Own Programming Language/Code/ch9/methodtype.java | 519 B |
Build Your Own Programming Language/Code/ch9/parameter.java | 141 B |
Build Your Own Programming Language/Code/ch9/parser.java | 39.69 KiB |
Build Your Own Programming Language/Code/ch9/parserVal.java | 1.19 KiB |
Build Your Own Programming Language/Code/ch9/serial.icn | 118 B |
Build Your Own Programming Language/Code/ch9/serial.java | 111 B |
Build Your Own Programming Language/Code/ch9/symtab.icn | 877 B |
Build Your Own Programming Language/Code/ch9/symtab.java | 1.44 KiB |
Build Your Own Programming Language/Code/ch9/symtab_entry.icn | 239 B |
Build Your Own Programming Language/Code/ch9/symtab_entry.java | 638 B |
Build Your Own Programming Language/Code/ch9/tac.icn | 719 B |
Build Your Own Programming Language/Code/ch9/tac.java | 969 B |
Build Your Own Programming Language/Code/ch9/token.icn | 1.33 KiB |
Build Your Own Programming Language/Code/ch9/token.java | 1.1 KiB |
Build Your Own Programming Language/Code/ch9/tree.icn | 18.51 KiB |
Build Your Own Programming Language/Code/ch9/tree.java | 21.91 KiB |
Build Your Own Programming Language/Code/ch9/typeinfo.icn | 832 B |
Build Your Own Programming Language/Code/ch9/typeinfo.java | 197 B |
Build Your Own Programming Language/Code/ch9/xy5.java | 175 B |
Build Your Own Programming Language/Code/ch9/yyerror.icn | 93 B |
Build Your Own Programming Language/Code/ch9/yyerror.java | 2.1 KiB |
Build Your Own Programming Language/Code/ch9/Yylex.java | 28.93 KiB |
Build Your Own Programming Language/Code/ch11/hello.j0 | 88 B |
Build Your Own Programming Language/Code/ch11/hello.java | 189 B |
Build Your Own Programming Language/Code/ch11/j0machine.icn | 2.85 KiB |
Build Your Own Programming Language/Code/ch11/j0machine.java | 4.06 KiB |
Build Your Own Programming Language/Code/ch11/j0x.icn | 228 B |
Build Your Own Programming Language/Code/ch11/j0x.java | 459 B |
Build Your Own Programming Language/Code/ch11/makefile | 194 B |
Build Your Own Programming Language/Code/ch11/Op.icn | 1.53 KiB |
Build Your Own Programming Language/Code/ch11/Op.java | 324 B |
Build Your Own Programming Language/Code/ch11/writehello.icn | 796 B |
Build Your Own Programming Language/Code/ch12/address.icn | 362 B |
Build Your Own Programming Language/Code/ch12/address.java | 39 B |
Build Your Own Programming Language/Code/ch12/arraytype.java | 267 B |
Build Your Own Programming Language/Code/ch12/byc.icn | 2.35 KiB |
Build Your Own Programming Language/Code/ch12/byc.java | 2.35 KiB |
Build Your Own Programming Language/Code/ch12/classtype.java | 533 B |
Build Your Own Programming Language/Code/ch12/hello.icn | 84 B |
Build Your Own Programming Language/Code/ch12/hello.j0 | 144 B |
Build Your Own Programming Language/Code/ch12/hello.java | 118 B |
Build Your Own Programming Language/Code/ch12/j0.icn | 7.16 KiB |
Build Your Own Programming Language/Code/ch12/j0.java | 9.85 KiB |
Build Your Own Programming Language/Code/ch12/j0gram.y | 5.45 KiB |
Build Your Own Programming Language/Code/ch12/j0machine.icn | 3.11 KiB |
Build Your Own Programming Language/Code/ch12/j0machine.java | 4.08 KiB |
Build Your Own Programming Language/Code/ch12/j0x.icn | 229 B |
Build Your Own Programming Language/Code/ch12/j0x.java | 473 B |
Build Your Own Programming Language/Code/ch12/javalex.l | 3.13 KiB |
Build Your Own Programming Language/Code/ch12/makefile | 1.2 KiB |
Build Your Own Programming Language/Code/ch12/methodtype.java | 52 B |
Build Your Own Programming Language/Code/ch12/Op.icn | 1.65 KiB |
Build Your Own Programming Language/Code/ch12/Op.java | 429 B |
Build Your Own Programming Language/Code/ch12/parameter.java | 142 B |
Build Your Own Programming Language/Code/ch12/serial.icn | 118 B |
Build Your Own Programming Language/Code/ch12/serial.java | 112 B |
Build Your Own Programming Language/Code/ch12/symtab.icn | 1.01 KiB |
Build Your Own Programming Language/Code/ch12/symtab.java | 1.64 KiB |
Build Your Own Programming Language/Code/ch12/symtab_entry.icn | 239 B |
Build Your Own Programming Language/Code/ch12/symtab_entry.java | 639 B |
Build Your Own Programming Language/Code/ch12/tac.icn | 829 B |
Build Your Own Programming Language/Code/ch12/tac.java | 834 B |
Build Your Own Programming Language/Code/ch12/token.icn | 1.33 KiB |
Build Your Own Programming Language/Code/ch12/token.java | 1.1 KiB |
Build Your Own Programming Language/Code/ch12/tree.icn | 18.72 KiB |
Build Your Own Programming Language/Code/ch12/tree.java | 21.92 KiB |
Build Your Own Programming Language/Code/ch12/typeinfo.icn | 832 B |
Build Your Own Programming Language/Code/ch12/typeinfo.java | 198 B |
Build Your Own Programming Language/Code/ch12/yyerror.icn | 93 B |
Build Your Own Programming Language/Code/ch12/yyerror.java | 2.1 KiB |
Build Your Own Programming Language/Code/ch13/address.icn | 306 B |
Build Your Own Programming Language/Code/ch13/address.java | 526 B |
Build Your Own Programming Language/Code/ch13/arraytype.java | 267 B |
Build Your Own Programming Language/Code/ch13/byc.icn | 2.36 KiB |
Build Your Own Programming Language/Code/ch13/byc.java | 2.35 KiB |
Build Your Own Programming Language/Code/ch13/classtype.java | 533 B |
Build Your Own Programming Language/Code/ch13/hello.java | 118 B |
Build Your Own Programming Language/Code/ch13/j0.icn | 15.49 KiB |
Build Your Own Programming Language/Code/ch13/j0.java | 19.72 KiB |
Build Your Own Programming Language/Code/ch13/j0gram.y | 5.46 KiB |
Build Your Own Programming Language/Code/ch13/j0machine.icn | 3.11 KiB |
Build Your Own Programming Language/Code/ch13/j0machine.java | 4.08 KiB |
Build Your Own Programming Language/Code/ch13/j0x.icn | 229 B |
Build Your Own Programming Language/Code/ch13/j0x.java | 473 B |
Build Your Own Programming Language/Code/ch13/javalex.l | 3.13 KiB |
Build Your Own Programming Language/Code/ch13/makefile | 1.31 KiB |
Build Your Own Programming Language/Code/ch13/methodtype.java | 52 B |
Build Your Own Programming Language/Code/ch13/Op.icn | 1.65 KiB |
Build Your Own Programming Language/Code/ch13/Op.java | 429 B |
Build Your Own Programming Language/Code/ch13/parameter.java | 142 B |
Build Your Own Programming Language/Code/ch13/reguse.icn | 29 B |
Build Your Own Programming Language/Code/ch13/RegUse.java | 50 B |
Build Your Own Programming Language/Code/ch13/serial.icn | 118 B |
Build Your Own Programming Language/Code/ch13/serial.java | 112 B |
Build Your Own Programming Language/Code/ch13/symtab.icn | 1.01 KiB |
Build Your Own Programming Language/Code/ch13/symtab.java | 1.64 KiB |
Build Your Own Programming Language/Code/ch13/symtab_entry.icn | 239 B |
Build Your Own Programming Language/Code/ch13/symtab_entry.java | 639 B |
Build Your Own Programming Language/Code/ch13/tac.icn | 823 B |
Build Your Own Programming Language/Code/ch13/tac.java | 834 B |
Build Your Own Programming Language/Code/ch13/token.icn | 1.33 KiB |
Build Your Own Programming Language/Code/ch13/token.java | 1.1 KiB |
Build Your Own Programming Language/Code/ch13/tree.icn | 19.13 KiB |
Build Your Own Programming Language/Code/ch13/tree.java | 22.25 KiB |
Build Your Own Programming Language/Code/ch13/typeinfo.icn | 832 B |
Build Your Own Programming Language/Code/ch13/typeinfo.java | 198 B |
Build Your Own Programming Language/Code/ch13/x64.icn | 305 B |
Build Your Own Programming Language/Code/ch13/x64.java | 90 B |
Build Your Own Programming Language/Code/ch13/x64loc.icn | 847 B |
Build Your Own Programming Language/Code/ch13/x64loc.java | 1.03 KiB |
Build Your Own Programming Language/Code/ch13/yyerror.icn | 93 B |
Build Your Own Programming Language/Code/ch13/yyerror.java | 2.1 KiB |