Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Last weekend, I was asking myself the same question to port my toy language to the JVM. </p> <p>I spend only few hours searching information,so take this references with a grain of salt. </p> <ul> <li><p><strong>Language Implementation Patterns</strong>. I hate antlr but this book looks very good. If you dont like antlr neither, there is a very good about parsing "Parsing Techniques. A Practical Guide." </p> <blockquote> <p>Learn to build configuration file readers, data readers, model-driven code generators, source-to-source translators, source analyzers, and interpreters. You don’t need a background in computer science—ANTLR creator Terence Parr demystifies language implementation by breaking it down into the most common design patterns. Pattern by pattern, you’ll learn the key skills you need to implement your own computer languages.</p> </blockquote> <p>Chapter 10 cover in 30 pages (to fast IMO) this topics. But there are other chapter that probably you will be interested. </p> <blockquote> <ul> <li>10 Building Bytecode Interpreters <ul> <li>10.1 Programming Bytecode Interpreters . .</li> <li>10.2 Defining an Assembly Language Syntax</li> <li>10.3 Bytecode Machine Architecture . . . . .</li> <li>10.4 Where to Go from Here . . . . . . . . . .</li> <li>P.26. Bytecode Assembler . . . . . . . . . . .</li> <li>P.27. Stack-Based Bytecode Interpreter . . .</li> <li>P.28. Register-Based Bytecode Interpreter</li> </ul> <a href="http://pragprog.com/titles/tpdsl/language-implementation-patterns" rel="nofollow noreferrer">http://pragprog.com/titles/tpdsl/language-implementation-patterns</a></li> </ul> </blockquote> <ul> <li><p><strong>The Implementation of Lua 5.0</strong> This is a great paper about register- based bytecode machines. Go an read it even for the sake of it. </p></li> <li><p><strong>Lisp in Small Pieces.</strong> This book teach how to write a 2 schme compailers that compile to C. So many lessons can be learned from this book. I own a copy of this book and it is really good for anyone interesting is lisp, but maybe not your cup of tea. </p> <blockquote> <p>This is a comprehensive account of the semantics and the implementation of the whole Lisp family of languages, namely Lisp, Scheme and related dialects. It describes 11 interpreters and 2 compilers ... </p> </blockquote></li> </ul> <p><a href="http://rads.stackoverflow.com/amzn/click/0521562473" rel="nofollow noreferrer">http://www.amazon.com/Lisp-Small-Pieces-Christian-Queinnec/dp/0521562473</a></p></li> </ul> <p>Check the Dalvik7 VM, a register-based VM. The DVM operates on bytecodes that are transformed from the Java Class files compiled by a Java compiler. </p> <p>There is a mailing list about the topic, jvm-languages. </p> <p>Are you planning to upload the code to anyplace? I would like to take a look.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload