opCode (Paperback)

virtual machine examples

By Anthony Davis

ADavis Publishing, 9781734314502, 192pp.

Publication Date: November 25, 2019

List Price: 21.00*
* Individual store prices may vary.

Description

In this book, we jump into a virtual machine, compiler and opcodes, without needing to read about parsing first. The language is already written, meaning you can dive into the source code of a working language right from the start (a programming language called langur, written in Go). Discover how to develop some very useful features, such as multi-variable assignment, decoupling assignment, string interpolation, short-circuiting operators, for loops, scoped if expressions, and more. We review how opcodes make these things work in a stack-based virtual machine.