dev/prometeuc-improvements #5

Merged
bquarkz merged 11 commits from dev/prometeuc-improvements into master 2026-01-21 10:55:48 +00:00
13 changed files with 25 additions and 25 deletions
Showing only changes of commit 1410a8ff19 - Show all commits

32
Cargo.lock generated
View File

@ -1887,6 +1887,22 @@ dependencies = [
name = "prometeu-bytecode"
version = "0.1.0"
[[package]]
name = "prometeu-compiler"
version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"oxc_allocator",
"oxc_ast",
"oxc_parser",
"oxc_span",
"prometeu-bytecode",
"prometeu-core",
"serde",
"serde_json",
]
[[package]]
name = "prometeu-core"
version = "0.1.0"
@ -1908,22 +1924,6 @@ dependencies = [
"winit",
]
[[package]]
name = "prometeuc"
version = "0.1.0"
dependencies = [
"anyhow",
"clap",
"oxc_allocator",
"oxc_ast",
"oxc_parser",
"oxc_span",
"prometeu-bytecode",
"prometeu-core",
"serde",
"serde_json",
]
[[package]]
name = "quick-xml"
version = "0.38.4"

View File

@ -4,7 +4,7 @@ members = [
"crates/prometeu-runtime-desktop",
"crates/prometeu",
"crates/prometeu-bytecode",
"crates/prometeuc",
"crates/prometeu-compiler",
]
resolver = "2"

View File

@ -1,5 +1,5 @@
[package]
name = "prometeuc"
name = "prometeu-compiler"
version = "0.1.0"
edition = "2021"

View File

@ -2,7 +2,7 @@ use clap::{Parser, Subcommand};
use std::path::PathBuf;
#[derive(Parser)]
#[command(name = "prometeuc")]
#[command(name = "prometeu-compiler")]
#[command(about = "Prometeu Compiler", long_about = None)]
pub struct Cli {
#[command(subcommand)]

View File

@ -15,8 +15,8 @@ path = "../prometeu-runtime-desktop/src/main.rs"
# Future binaries (commented)
# [[bin]]
# name = "prometeuc"
# path = "../prometeuc/src/main.rs"
# name = "prometeu-compiler"
# path = "../prometeu-compiler/src/main.rs"
#
# [[bin]]
# name = "prometeup"

View File

@ -8,7 +8,7 @@ use std::process::Command;
/// The main entry point for the user. This binary does not implement
/// compilation or execution logic itself; instead, it acts as a smart
/// front-end that locates and dispatches commands to specialized
/// components like `prometeu-runtime-desktop` or `prometeuc`.
/// components like `prometeu-runtime-desktop` or `prometeu-compiler`.
#[derive(Parser)]
#[command(name = "prometeu")]
#[command(about = "Dispatcher for the Prometeu ecosystem", long_about = None)]
@ -87,13 +87,13 @@ fn main() {
);
}
Some(Commands::Build { .. }) => {
not_implemented("build", "prometeuc");
not_implemented("build", "prometeu-compiler");
}
Some(Commands::Pack { .. }) => {
not_implemented("pack", "prometeup");
}
Some(Commands::Verify { target }) => match target {
VerifyCommands::C { .. } => not_implemented("verify c", "prometeuc"),
VerifyCommands::C { .. } => not_implemented("verify c", "prometeu-compiler"),
VerifyCommands::P { .. } => not_implemented("verify p", "prometeup"),
},
None => {
@ -120,7 +120,7 @@ fn dispatch(exe_dir: &Path, bin_name: &str, args: &[&str]) {
"prometeu: command '{}' is not yet available in this distribution on {}",
match bin_name {
"prometeu-runtime-desktop" => "run/debug",
"prometeuc" => "build/verify c",
"prometeu-compiler" => "build/verify c",
"prometeup" => "pack/verify p",
_ => bin_name,
}, exe_dir.display()