9c6b516453
- Reorganize repository to Rust-style layout: compiler/bootstrap/ compiler/selfhost/ compiler/tests/ library/std/ library/runtime/ tests/ tools/ - Add buxs/ Windows-compatible project root - Add borrow checker tests and implement: - Alias analysis (double mutable borrow detection) - Use-after-move detection for own T - Expand standard library: - Std::Os: Args, Env, Cwd, Chdir - Std::Time: NowMs, NowUs, SleepMs - Std::Process: Run, Output - Std::Io: PrintInt64 (fixes 32-bit truncation bug) - Add examples: os_time.bux, process.bux - Fix PrintInt to use int64_t in C runtime
19 lines
422 B
Plaintext
19 lines
422 B
Plaintext
module Std::Path {
|
|
|
|
extern func bux_path_join(a: String, b: String) -> String;
|
|
extern func bux_path_parent(path: String) -> String;
|
|
extern func bux_path_ext(path: String) -> String;
|
|
|
|
func Path_Join(a: String, b: String) -> String {
|
|
return bux_path_join(a, b);
|
|
}
|
|
|
|
func Path_Parent(path: String) -> String {
|
|
return bux_path_parent(path);
|
|
}
|
|
|
|
func Path_Ext(path: String) -> String {
|
|
return bux_path_ext(path);
|
|
}
|
|
|
|
} |