Skip to content
Nishal K edited this page Sep 29, 2025 · 2 revisions

Welcome to Veyra!

PyPI GitHub

Veyra is a modern programming language designed for web development and rapid prototyping, featuring built-in web capabilities and a clean, readable syntax.

πŸš€ Quick Start

Installation

pip install veyra

Hello World

Create a file hello.veyra:

println("Hello, Veyra!");

Run it:

veyra hello.veyra

🌟 Key Features

Web-Native Development

  • Built-in HTML/CSS generation
  • Web server functionality
  • UI component library

AI/ML Ready

  • Matrix operations
  • Neural network primitives (ReLU, sigmoid, softmax)
  • Linear regression utilities

Modern Language Features

  • Object-oriented programming with classes
  • Error handling with try/catch
  • Functional programming support
  • Rich standard library

Developer Experience

  • Interactive REPL with multi-line support
  • Easy package management
  • Comprehensive documentation

πŸ“š Documentation

🎯 Use Cases

Web Development

fn main() {
    let page = create_page("My App", 
        html_element("h1", "Welcome!"),
        css_style("body", "background: #f0f0f0;")
    );
    web_serve(page, 8080);
}

AI Prototyping

fn main() {
    let input = [0.5, 0.3];
    let weights = [[0.1, 0.2], [0.3, 0.4]];
    let output = matrix_multiply([input], weights);
    println("AI output: " + relu(output[0][0]));
}

Data Processing

fn main() {
    let data = json_parse(read_file("data.json"));
    let processed = data.map(item => item.value * 2);
    write_file("output.json", json_stringify(processed));
}

πŸ—οΈ Project Structure

veyra/
β”œβ”€β”€ src/veyra/           # Core language implementation
β”‚   β”œβ”€β”€ cli.py          # Command line interface
β”‚   β”œβ”€β”€ lexer.py        # Lexical analysis
β”‚   β”œβ”€β”€ parser.py       # Syntax parsing
β”‚   β”œβ”€β”€ interpreter.py  # Runtime execution
β”‚   └── lib/            # Standard library modules
β”œβ”€β”€ examples/           # Example programs
β”œβ”€β”€ tests/              # Test suite
└── docs/               # Documentation

🀝 Contributing

We welcome contributions! See our Contributing Guide for details.

Development Setup

git clone https://github.com/nishal21/veyra.git
cd veyra
pip install -e .

Running Tests

pytest tests/

πŸ“ž Community

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


Veyra - Making web development fun and accessible! πŸŽ‰

Last updated: September 2025