Skip to content

Instantly share code, notes, and snippets.

View alob-mtc's full-sized avatar
🏠
Working from home

Akinlua Bolamigbe alob-mtc

🏠
Working from home
View GitHub Profile
@alob-mtc
alob-mtc / Readme.md
Last active November 7, 2023 09:01
ProScript Language Spec

ProScript

Language Draft

Version: 0.1

Overview: ProScript is an interpreted programming language focused on asynchronous programming. It provides simple and powerful constructs for writing asynchronous code, such as async/await, futures, and promises. ProScript also has a garbage collector to automatically manage memory.

Data types:

@alob-mtc
alob-mtc / lib.rs
Last active September 17, 2023 15:41
An Implementation of a String Split [str str::split()] from the std
pub trait Delimiter {
fn find_next(&self, s: &str) -> Option<(usize, usize)>;
}
impl Delimiter for &str {
fn find_next(&self, s: &str) -> Option<(usize, usize)> {
s.find(self).map(|start| (start, start + self.len()))
}
}