KO
|
EN
gitlite — search
Search
#ai
#python
#react
#kotlin
#java
#home-assistant
#homeassistant
#emacs
#deepseek
#hacs
#android
#3d
chuckscript
★ 33
Open GitHub ↗
Chuck Norris Programming Language
Download README (.md)
Explore Similar Repositories
inspektor
:
A multiplatform HTTP inspection library for Ktor inspired by Chucker with request response overriding/mocking
Chuckyfix
:
Jangan Songong Kalau Pake Bot Orang! Udah Di Kasih Baik Malah Songong!!! -__-
webchuck
:
ChucK on the Web
md
:
复制上一条命令到剪贴板。报错了?md 一下,直接丢给 AI。| Copy the previous command to the clipboard. Got an error? Just MD it and chuck it at the AI.
chunreal
:
ChucK in Unreal Engine
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
chuckscript
?
Download (.md)
Chuck Norris Programming Language ================================= _by @angrykoala_ [](https://badge.fury.io/js/chuckscript) [](https://www.bithound.io/github/angrykoala/chuckscript) [](https://www.bithound.io/github/angrykoala/chuckscript/master/dependencies/npm) Chuck Norris can code using binary without 1, with Chuck Norris Programming Language (**CNPL**) you also can!. For those who think assembler is a high level language. ## Syntax The syntax is probably the easiest to learn: `0` is the only command you'll need. What does `0` do? Everything. ## ChuckScript Chuck Norris code is so powerful that no current machine can process it, so a higher abstraction was made to make the code comprehensible for humans (and machines): `[0]{12}` means _"twelve zeroes"_ and it is translated `000000000000` in pure Chuck Norris Code. All ChuckScripts allow comments, and only the first command with the syntax `[0]{...}` will be executed. The extension is `.cnpl` ## Hello World! CNPL is fully functional, based on JavaScript. To start coding, just tweak this simple hello world: ``` [0]{9582516168086304533950061199088375933762201813077804024987245718616842} ``` _hello_world.cnpl_ ## Installation You can install chuckScript from the official npm repository typing: ``` npm install -g chuckscript ``` Or you can manually clone from [github](https://github.com/angrykoala/chuckscript) and install with `npm install` >You need node and npm installed on your system ### CNI CNI (_Chuck Norris Interpreter_) is the official CNPL interpreter and allows you to execute CNPL (extension .cnpl) in your machine: ``` cni myprogram.cnpl ``` ### CNGEN Of course, CNPL is the only language you'll ever need again, however, to start learning it cni also brings a cnpl code generator, which will convert your old, un-epic JavaScript code into a bright new CNPL code, to use it: ``` cngen myoldjs.js newsupercode.cnpl ``` ### Examples In the folder `/examples` you'll find some ready-to-use examples of cnpl code: * **hello_world.cnpl:** The proper way to start learning a new language, with a easy-to-learn hello world * **loop.cnpl:** Learn the easy loop syntax of ChuckScript with this example * **sever.cnpl:** ChuckScript is web-development ready, in this example you will learn how to make your own server ## Module Usage To use _chuckscript_ in your node.js code, simply `require('chuckscript')`: * `execute(code)`: Executes given cnpl code (using javascript cni). * `cnpl2js(code)`: Translates cnpl code to javascript, returns string with js. * `compile(jsCode)`: Compiles javascript code into chuckscript. > CNPL is a improved version of [Unary esoteric language](https://esolangs.org/wiki/Unary) > ABC.js (c) 2013 Stephan Schmitz