https://github.com/karlbateman/vyper
An experimental programming language inspired by Python and Go.
https://github.com/karlbateman/vyper
codegen golang lexer parser programming python zig
Last synced: 8 months ago
JSON representation
An experimental programming language inspired by Python and Go.
- Host: GitHub
- URL: https://github.com/karlbateman/vyper
- Owner: karlbateman
- License: bsd-3-clause
- Created: 2025-04-14T19:08:33.000Z (8 months ago)
- Default Branch: develop
- Last Pushed: 2025-04-14T19:15:51.000Z (8 months ago)
- Last Synced: 2025-04-14T20:26:59.867Z (8 months ago)
- Topics: codegen, golang, lexer, parser, programming, python, zig
- Language: Zig
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vyper (Prototype)
Vyper is an experimental programming language inspired by Python's syntax and
Go's performance and tooling.
This is a **minimal prototype** showing the first end-to-end flow:
- Lexing
- Parsing
- Generating C code
- Compiling to a native binary using `zig cc`
## 📦 Requirements
- [Zig](https://ziglang.org/) **0.13.0** or newer
## 🚀 Usage
First, compile the `vyper` compiler itself:
```bash
zig build
```
This will produce a binary located at `zig-out/bin/vyper` which can be used to
compile one of the example `.vy` programs as follows:
```bash
./zig-out/bin/vyper build examples/hello.vy
```
This will compile the Vyper program to a single binary located in the
`out/hello` directory. To run this example, use the following:
```bash
./out/hello
```