Skip to content
This repository was archived by the owner on Jan 11, 2026. It is now read-only.

xiaoxustudio/vine-lang

Repository files navigation

Warning

This warehouse will no longer be maintained as it is currently being rewritten in the Go language.

logo

Vine Language

NPM Downloads NPM Version logo

Vine is an interpreted programming language designed for ease of use and learning. It is a simple language built on TypeScript but features a more modern syntax and functionality.

image image image

Install

npm install vine-lang
# or
pnpm add vine-lang

Use

import { Vine } from "vine-lang";

const vine = new Vine();
vine.run(`
    print("Hello, World!")
`);
const result = vine.run(`1 + 2`);
console.log(result); // 3

const result2 = vine.run(`"Hello, " + "World!"`);
console.log(result2); // Hello, World!

const result3 = vine.run(`
    fn a(num):
        return num + 1
    end
    a(1)
`);
console.log(result3); // 2

//  ...more , you can see the example in vine respository

Language support for VSCode: vine-for-vscode

Develop

The project uses pnpm as the package manager.

pnpm install

Local run

pnpm run dev

Build

Build exe

pnpm run exebuild

Repl

Vine offers the repl function, allowing you to directly run code in the command line.

pnpm run repl

Vine > print("Hello, World!")

Interpret

It is also possible to run code files with the suffix .vine

pnpm ipt <path>

Regarding

Author: Xu Ran

Contact Information: [email protected]

Please feel free to raise your valuable "issue", and we will handle it.

LICENSE

MIT

About

An interpreted language based on TypeScript

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages