Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🚒 Cruise Programming Language (cruise-lang)

The AI-Ready, Human-Readable Programming Language Built for Speed & Simplicity

PyPI Version License Python

Created & Developed with ❀️ by Manjas Anand


πŸ’– Support My Work

If you find this project helpful and want to support my open-source work:

Support My Work


✨ Overview

Cruise is a lightweight, modern, high-level programming language built in Python.

It focuses on:

  • πŸš€ Easy-to-read syntax
  • 🧠 Beginner-friendly design
  • ⚑ Fast execution
  • πŸ€– AI-friendly scripting
  • πŸ“¦ Built-in utilities
  • πŸ”₯ Zero configuration

πŸš€ Installation

Install Cruise from PyPI:

pip install --upgrade cruise-lang

πŸš€ Quick Start

Interactive REPL

Start the Cruise shell:

cruise

Example:

>>> write("Hello World!")
Hello World!

Running Script Files

Save your code as either:

main.cru

or

main.crui

Run it using:

cruise main.cru

πŸ“š Language Syntax

Printing Output

write("Hello World!")

Variables

name = "Cruise"
version = 2

write(name)
write(version)

Functions

define greet(user):
    write("Welcome to Cruise Language, " + user + "!")
end

greet("Manjas")

Loops

5 times write("Cruising Fast! πŸš€")

Conditions

if x > 10:
    write("Greater")
end

🧠 Built-in Tensor Support

v1 = tensor([1.5, 2.5, 3.5])
v2 = tensor([10.0, 20.0, 30.0])

write(v1)
write(v2)

🌐 HTTP Requests

data = fetch("https://api.github.com")
write(data)

πŸ–₯️ GUI Components

background("navy")

button("Submit Form")
button("Cancel")

✨ Features

  • πŸš€ Human-readable syntax
  • 🧠 Beginner friendly
  • ⚑ Fast interpreter
  • πŸ“¦ Built-in HTTP library
  • 🌐 JSON support
  • πŸ€– AI-ready scripting
  • πŸ”’ Tensor arrays
  • πŸ–₯️ GUI widgets
  • πŸ“ .cru and .crui support
  • πŸ’» Interactive REPL
  • πŸ”₯ Zero configuration

πŸ“‚ Project Structure

Cruise/
β”‚
β”œβ”€β”€ cruise.py
β”œβ”€β”€ lexer.py
β”œβ”€β”€ parser.py
β”œβ”€β”€ interpreter.py
β”œβ”€β”€ runtime.py
β”œβ”€β”€ stdlib.py
β”œβ”€β”€ README.md
└── LICENSE

πŸ—ΊοΈ Roadmap

βœ… v0.1.0

  • Interactive REPL
  • Variables
  • Printing
  • Basic Interpreter

βœ… v0.2.0

  • User Functions
  • .cru support
  • .crui support
  • HTTP Requests
  • Tensor Objects
  • WebAssembly Support

🚧 v0.3.0

  • Complete AST Parser
  • Advanced Lexer
  • Modules
  • Package Manager
  • GUI Framework
  • Tensor Calculus
  • Math Library
  • Optimizer

🀝 Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a new branch
git checkout -b feature-name
  1. Commit changes
git commit -m "Added new feature"
  1. Push
git push origin feature-name
  1. Open a Pull Request

πŸ“œ License

Licensed under the MIT License.

See the LICENSE file for details.


πŸ‘¨β€πŸ’» Creator

Developer: Manjas Anand

πŸ“¦ PyPI Package:

cruise-lang

πŸ™ GitHub:

manjas-developer/Cruise

πŸ“§ Contact:

manjasanand08@gmail.com

🚒 Cruise Language

Write Less. Build More. Cruise Faster. πŸš€

Made with ❀️ in Python.


πŸ’– Support My Work

If you find this project helpful and want to support my open-source work:

Support My Work


Releases

Sponsor this project

Packages

Contributors

Languages