1 Star 0 Fork 0

阿债 / tinyv

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.60 KB
一键复制 编辑 原始数据 按行查看 历史
joe-conigliaro 提交于 2020-07-03 18:54 . make note bold

tinyv

V compiler... but tinier

A simplistic compiler for the V language: https://github.com/vlang/v

Please no PR's for code, thanks. This is an experiment, things may change drastically.

What this is / is not

  • It is not intended to be a replacement, substitution, or competitor for the main V compiler.
  • It is not intended to support all the features of the main V compiler (idealy high 90% of features).
  • It is a research project to discover ways to improve the main V compiler.
  • It is intended to be a functioning V compiler.
  • It is going to remain simple.
  • It is for fun.

Motivation

Fun.

I want to make a V compiler which is as simple as possible and with minimal lines of code (no frills). The thing I love about V is its simplicity and the simplicity of the compiler, as more features are added and more edge cases are created the complexity of the compiler increases.

My goal is not to support all of the features of the main compiler, but a compromise beween simplicity and feature support. I would like to acheive high 90% feature support while keeping the codebase as simple as possible.

Research.

I'm really passionate about the V project and its community, my main focus is to make the V compiler better.

Without any existing constraints, and using what I have learned I am able to easily test new ideas & simplifications which could end up being migrated into the main compiler.

Status

  1. Scanner / Lexer - Working (almost complete)
  2. Parser - Working (incomplete, stub methods & nodes)
  3. Backends / Generation Stage
    • x64 (not started)
    • C (not started)
1
https://gitee.com/azhai/tinyv.git
git@gitee.com:azhai/tinyv.git
azhai
tinyv
tinyv
master

搜索帮助