Crate openscript

Source
Expand description

OpenScript: High-Performance AI-Powered Scripting Language Runtime

OpenScript is a modern scripting language designed for automation, AI integration, and rapid prototyping. It combines the simplicity of shell scripting with the power of AI services and modern language features.

§Features

  • AI Integration: Native support for OpenAI GPT, DALL-E, and other AI services
  • High Performance: Built in Rust with zero-cost abstractions
  • Memory Safe: Guaranteed memory safety without garbage collection
  • Concurrent: Built-in support for async/await and parallel execution
  • Extensible: Plugin architecture for custom commands and integrations

§Quick Start

use openscript::{Runtime, Script};

#tokio::main async fn main() -> Result<(), Box> { let mut runtime = Runtime::new(); let script = Script::parse(“echo ‘Hello, OpenScript!’”)?; let result = runtime.execute(script).await?; println!(“{}”, result); Ok(()) }

Re-exports§

pub use error::Error;
pub use error::Result;
pub use value::Value;

Modules§

ast
Abstract Syntax Tree definitions for OpenScript
error
Error types and utilities for OpenScript
lexer
Lexical analysis for OpenScript
parser
Parser for OpenScript
runtime
Runtime execution engine for OpenScript
value
Value system for OpenScript

Structs§

Script
Represents a parsed OpenScript program

Functions§

execute
Convenience function to execute a script string directly