Parsing Nested Expressions and Disambiguating The Order Of Operations (16-Bit VM in JavaScript 009)

preview_player
Показать описание
In this episode we're continuing with the assembler; finalising the "Move Literal To Register" instruction parser, and implementing the rules that govern the order of operations.

=[ ℹ About ℹ ]=

This series is all about building a powerful virtual machine in JavaScript with the following features:

- A flexible, extensible, register-based virtual machine
- Support for signed, unsigned and floating point operations
- A call stack
- Interrupt capabilities
- Ability to do memory mapping for IO
- An assembly language with macro and module support
- A higher level, C like language. We'll use and expand the library from the parser combinators from scratch series
- And finally, to be able to take the whole thing into the browser and extend it to create a sort of fantasy console - an emulator for a machine that never existed

Рекомендации по теме
Комментарии
Автор

Pros: This is a high-quality series that describes how to make a virtual device in my favorite language.
Cons: It's so high quality that the episodes take a while to come out.
Pros: *It's so high quality*
Pros: Whenever another one comes out, I get super excited!

ceorecdeclec
Автор

I swear to god, if you abandon us like many project series, we will cry.

As a 15 year old wanting to get into systems programming (And already knowingg C89/C++) I implore you to continue this series to help all of us young, not even in college students who aspire to go into low level programming or even this type of implementation.

zeektm
Автор

A new Low-Level Javascript video! My day just got even better!

gregfletcher
Автор

I was following the parser combinators from scratch but in python and was having a lot of difficulty to figure out exactly how to do nesting and operation priority, while I was waiting for this video, after getting some help, I figured out that I could make a specific combinator for handling left-associativity without infinite loops and I think I accidentally just discovered something similar to promises which enabled doing recursive parsing but using the very parser call stack.

Love the series, hope to see more episodes.

Jeacom
Автор

could you use a switch statement for the states? or would that not work?

monkegotpower
welcome to shbcf.ru