Hi Lea,
if you want to design your own toy language, I would not pick V8. Here is why:
- V8 is highly optimized for performance. The price is that the code is mostly not straight-forward. A big part of V8 would not be necessary if performance was not an issue.
- Javascript is a language with many quirks and pitfalls. V8 went great lengths to implement those.
- Javascript is not meant to compile code ahead of time. Therefore V8 does not compile into native binaries.
What you could consider is to compile your language into javascript, and have that run on top of V8. But that probably does not comply with your goal to learn about compiler construction.
Yang