anallang
v1.0.12
Published
An esoteric joke language based on the ππ emojis.
Downloads
7
Readme
AnalLang
An esoteric joke language based on the ππ emojis.
Setup
Installation:
npm install -g anallang
Running a file:
anallang <file>.anal
Translate JavaScript to Anallang:
analtranslate -o <out>.anal <file>.js
Programmatic API
To use the programmatical API, require()
the anallang module.
var anallang = require('./anallang')
There are many functions, and some can be different than others. Here are a list of them and examples:
anallang::translateStringToAnalLang
: Translates UTF-8 string to AnalLang code.
Example:
anallang.translateStringToAnalLang(<anallang string>).then((res) => {
console.log(res);
})
anallang::translateStringToAnalLang
: Translates file to AnalLang code.
Example:
anallang.translateFileToAnalLang(<file>.anal).then((res) => {
console.log(res);
})
anallang::evalFile
: Evaluates AnalLang file.
Example:
anallang.evalFile(<file>.anal)
anallang::evalString
: Evaluates AnalLang code.
Example:
anallang.evalString(<AnalLang code>)