@kithinji/lml
v1.0.19
Published
# Installation
Readme
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();