Replies: 1 comment 2 replies
-
V, as most compilers these days, parses the source into an AST. Once the AST is created, the C backend ( How it works is that it was first bootstrapped in Go, until it could compile itself. Bootstrapping is necessary, of course, because you can't compile anything in a language that doesn't exist, yet. You'll need to do the same with your language if you want it to compile itself. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone, I hope y'all doing good. I am currently working on my own programming language and I am curious how does V compile to C. Does it just translates V code into C code and compile C code? Or does it have another way of compile V code? Also, I understand that V is written in itself like Go and Rust, but how does that even work😅?
Beta Was this translation helpful? Give feedback.
All reactions