verion-lang
v3.0.0
Published
Verion Language - A simple, English-like programming language for everyone
Maintainers
Readme
🚀 Verion Language (VL)
A simple, English-like programming language designed for beginners and makers.
Verion Language is an installable programming language with English-like syntax, making code readable and beginner-friendly. Perfect for bots, web servers, and simple applications.
✨ Features
- English-like Syntax - Write code that reads like natural language (
set name to "Alice") - Easy to Learn - Simple, intuitive syntax perfect for beginners
- Interpreted or Compiled - Run instantly with
vl runor transpile to JavaScript - String Concatenation - Natural string joining with
+ - Professional CLI - Full-featured command-line interface
- npm Installable - Install globally like Node.js or Python
- Complete Pipeline - Tokenizer → Parser → Interpreter/Transpiler
Install (from local clone)
git clone https://github.com/VerionTech/verion-lang.git
cd verion-lang
npm install
npm link # or: npm install -g .Now you have the vl command:
vl --help🎯 Quick Start
Create a file called hello.vl:
write "Hello, World!"Run it:
vl run hello.vlOutput:
Hello, World!📚 Language Syntax
Printing Output
write "Hello, World!"
write 42Variables
set name to "Alice"
set age to 25
set total to 100Math Operations
set x to 10
set y to 5
set sum to x plus y
set difference to x minus y
set product to x multiply y
set quotient to x divide yFunctions
define greet(name):
write "Hello "
write name
end
greet("Bob")Conditionals
set score to 85
if score is greater than 80:
write "Great job!"
else:
write "Keep trying"
endLoops
repeat 5 times:
write "Hello!"
endComments
# This is a comment
write "This is code"🛠️ CLI Commands
Run a VL Script
vl run <file.vl>Build to JavaScript
vl build <file.vl>This creates a .mjs file in the dist/ directory.
Initialize a Project
vl initAdd npm Packages
vl pkg add <package-name>Help
vl help🏗️ Architecture
Verion Language consists of four main components:
- Tokenizer (
compiler/tokenizer.js) - Converts source code into tokens - Parser (
compiler/parser.js) - Converts tokens into an Abstract Syntax Tree - Interpreter (
compiler/interpreter.js) - Executes the AST directly - Transpiler (
compiler/transpiler.js) - Converts AST to JavaScript
📖 Examples
The examples/ directory contains sample programs demonstrating all features:
hello.vl- Hello Worldvariables.vl- Variable declarations and mathfunctions.vl- Function definitions and callsconditionals.vl- If/else statementsloops.vl- Repeat loopscomplete.vl- All features combined
