GithubHelp home page GithubHelp logo

volume's Introduction

volume

a programming language
Javaのように、バーチャルマシン上で動作します。

右辺、単項しかサポートしてない。

VVM (Volume Virtual Machine)

VBinを読み込んで、実行するバーチャルマシン

volc (volume compiler)

  • vasm_gen : *.vol to *.vol.s
  • vbin_gen : *.vol.s to *.vol.b

Volume : *.vol

VAsm (Volume Assembly) : *.vol.s

INFO 世界で広く使用されているAssemblyとは別物です *.volから、変換されたもの。 中間表現。
もしかしたら、複数の.volファイルを使用するプログラムを組んだときにオブジェクトファイルのように扱われるかもしれないが、今のところVBinを生成する用途でしか使われない。

VBin (Volume Binary) : *.vol.b

INFO 世界で広く使用されているBinaryとは別物です
*.vol.sから変換されたもの。
VAsmとほぼ同じ。
VVMはこれを読み、実行する。
VVMが読み込みやすいように作られている。

cp src dst
add src dst
sub src dst

string idea

  • len "text" dst
    dst = 4

  • split "text"
    push "t"
    push "e"
    push "x"
    push "t"

  • join "text" dst
    dst = dst + "text"

volume's People

Contributors

x0y14 avatar

Stargazers

Lubomir Anastasov avatar

Watchers

 avatar

volume's Issues

vmのexec関数から派生する関数が無駄に複雑

vm内部のメインメモリーには、トークンが格納されています。
レジスター系もトークンを保有するようになっています。
トークナイズと、vm内部で使用するデータを変換するなりして、分けないと、何が起きているのかが、わかりにくくなるのではないでしょうか。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.