GithubHelp home page GithubHelp logo

vyper-semantics's Introduction

KVyper: Semantics of Vyper in K

In this repository we present a formal semantics of Vyper. For more details, refer to wiki.

WARNING: This repository has not been independently audited for security. Use with caution.

Running KVyper

KVyper can be used to compile Vyper programs to EVM bytecode, being comparable to the production Vyper compiler.

First, build K after installing the prerequisites in k/README.md (after the first command):

$ git submodule update --init k
$ cd k
$ mvn package -DskipTests

Add the bin directory to your path:

$ export PATH="`pwd`/k-distribution/target/release/k/bin:$PATH"

Then, build KVyper:

$ kompile --syntax-module VYPER-ABSTRACT-SYNTAX vyper-lll/vyper-lll-post.k
$ kompile --syntax-module LLL-EVM-INTERFACE     lll-evm/lll-evm.k

Now you can run KVyper (Python 3.6 required):

$ python3.6 kvyper.py <pgm>.v.py

For example,

$ python3.6 kvyper.py tests/examples/token/ERC20.v.py

Contributing to KVyper

To contribute to KVyper: file issues, submit pull requests, and join the community K Riot channel, which includes a number of K experts.

vyper-semantics's People

Contributors

denis-bogdanas avatar yzhang90 avatar daejunpark avatar pdaian avatar

Watchers

James Cloos avatar chattg1 avatar

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.