Skip to content

Commit

Permalink
fix title casing
Browse files Browse the repository at this point in the history
  • Loading branch information
healeycodes authored Oct 15, 2024
1 parent 00eb8c2 commit 2489377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posts/compiling-lisp-to-bytecode-and-running-it.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This is a nice example of simple [bytecode](https://en.wikipedia.org/wiki/Byteco

In previous posts, I walked through [compiling Lisp to JavaScript](https://healeycodes.com/lisp-to-javascript-compiler) and [explored some optimizations](https://healeycodes.com/lisp-compiler-optimizations). This time, I'm taking a different approach: compiling Lisp to bytecode and running it in a custom VM. You don't need to have read my previous posts to follow along!

## Running bytecode
## Running Bytecode

In [a recent commit](https://github.com/healeycodes/lisp-to-js/commit/c5252e313ad2aa7024363317aaccae3b296d4e57) to [lisp-to-js](https://github.com/healeycodes/lisp-to-js), I added the option to compile Lisp code to bytecode and run it in a [stack-based](https://en.wikipedia.org/wiki/Stack_machine) VM. My Lisp variant is quite simple (based on [Little Lisp](https://maryrosecook.com/blog/post/little-lisp-interpreter)). Below, I have a small program and the bytecode it produces.

Expand Down Expand Up @@ -210,7 +210,7 @@ impl StackFrame {
}
```

## Generating bytecode
## Generating Bytecode

After parsing, and an optional optimization pass, the compiler produces an Abstract Syntax Tree (AST) representing the Lisp expressions that need to be processed into bytecode.

Expand Down

0 comments on commit 2489377

Please sign in to comment.