1.0.19 • Published 6 months ago
@kithinji/lml v1.0.19
Typescript interpreter for the Lugha programming language
Installation
npm install @kithinji/tlughaInstruction
A simple hello world program in lugha.
// in file app.la
use std::io::{ print };
// the main function is called automatically
fun main(): string {
let str = "return to typescript";
print("{}", str);
return str;
}Executing the code in Typescript
import { exec } from "@kithinji/tlugha";
function main() {
try {
const result = exec("app.la");
console.log(result); // output: return to typescript
} catch(e) {
console.error(e);
}
}
main();1.0.19
6 months ago
1.0.18
6 months ago
1.0.17
7 months ago
1.0.16
7 months ago
1.0.15
7 months ago
1.0.14
7 months ago
1.0.13
7 months ago
1.0.12
7 months ago
1.0.11
7 months ago
1.0.10
7 months ago
1.0.9
7 months ago
1.0.8
7 months ago
1.0.7
8 months ago
1.0.6
8 months ago
1.0.5
8 months ago
1.0.4
8 months ago
1.0.3
8 months ago
1.0.2
8 months ago
1.0.1
8 months ago
1.0.0
8 months ago