Programming Language

Nocter

A self-contained systems language built around simplicity, encapsulation, and foolproof design.

/examples/text-report/report/index.nct

index.nct

include ./analysis.nct

pub struct Report

instance Report {
    pub method &self.lines(): usize

    pub method &self.matching(): usize
}

pub func analyze(text: &str, needle: &str): Report