Skip to content

NullDev/I-HAS-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

I HAS JS


A LOLCODE interpreter written in JavaScript

ℹ️ About

This is a LOLCODE interpreter/parser written in NodeJS. It can be used as interpreter, which executes the code in the terminal as well as a parser, which outputs the parsed JavaScript code.

💡 Usage

As NodeJS Script:

This tool can be used 'as is' in the terminal by passing a file. Example:

node app.js ./examples/HELLO.lol

This will execute HELLO.lol in the terminal.
The script takes one additional argument: --plain / -p
That argument will not execute the LOLCODE script. It will output the parsed JavaScript code only.
Example:

node app.js ./examples/HELLO.lol --plain

As NPM Module:

The tool can be used as NPM Module as well.

Example:

var parser = require("../app");
console.log(parser('VISIBLE "OMG HI"'));
// => console.log("OMG HI");

📮 NPM


🔧 Installation

npm i lolcode

⚠️ Warning

This is highly experimental!