frut_interp

Crates.iofrut_interp
lib.rsfrut_interp
version0.0.4
created_at2025-10-23 14:42:25.873178+00
updated_at2025-11-06 10:58:10.13237+00
descriptionA command-line interpreter for the Frut programming language
homepage
repositoryhttps://github.com/BenimFurka/frut_interp
max_upload_size
id1897210
size63,575
furka (BenimFurka)

documentation

README

Frut Interpreter

Crates.io Documentation License

A command-line interpreter for the Frut programming language, built on top of the frut_lib crate.

Installation

cargo install frut_interp

Usage

frut path/to/script.ft

Example

A simple Frut program that calculates factorials:

import std.io.*;

// Calculate factorial of a number
func factorial(n: int): int {
    if n <= 1 {
        return 1;
    } else {
        return n * factorial(n - 1);
    }
}

// Calculate and print factorial of 5
var result: int = factorial(5);
println("Factorial of 5 is: " + result as string);

Save this as factorial.ft and run:

frut factorial.ft

Documentation

For documentation, including language syntax, visit:

License

Licensed under the Apache License, Version 2.0 LICENSE.

Commit count: 0

cargo fmt