Nylon is a in development programming language that takes inspiration from bdscript2 and yaml. Nylon is not for discord bots and is being developed for game development but will have the tools to make any package you desire including the future discord.nyl planned much later after the languages release. Nylon can be intergrated with nearly any language to form as a universal translator that can be highly customised for whatever purpose you need it for.
Here from BDFD? Below is a condensed list of some of the major differences between BDFD and The Nylon Design Engine if your planning to use it for Discord bot development.
Open List
Different syntax
nylon only uses $ for most functions but blocks dont use any start below is an example of this.$tempVar[num;$randomNum[1;10]] if $get[num] > 5 then: - $consoleOut[above 5] else: - $consoleOut[5 or lower] endif
Multiple Split Texts.
nylon expands the common textSplit feature found in many languages by allowing you to store multiple textSplits and edit them simultaneously instead of having save and switch between them constantly.No Free Hosting.
you must source your own hosting to power the Nylon Design Engine or host on your own device.No Free Data Storage.
you must store data locally or source your own data servers.
Nylon Design Engine
The Nylon Design Engine is the code engine needed to use Nylon and NILD. Nylon views similar to Visual Studio Code but has a variables section. When creating projects you need to select a language to thread this will be the language that the Nylon language will operate on and allows you to use the nylon language to develop stuff for already existing projects that use other languages. (for example modding a game that uses java or lua)
You can also thread with Nylon Direct which is a solely nylon system meaning it cannot communicate with other languages unless you thread them within the file.
Nylon Programming Language
The Nylon Programming Language takes inspiration from Bot Designer For Discords bdscript2 and the storage language yaml turning coding into a easily readable and translatable step by step process.
NILD (Nylon Intergration Language for Data)
Data is called in through nylon with $getData[source;key;(key2;...)]
below is two examples of this.
nild file (inventorys.nild):
- user1
[ > Dirt: 0;
> Stone: 0;
]
- user2
[ > Dirt: 3;
> Stone: 5;
]
nylon code:
$getData[src/inventorys.nild;user1;Dirt]
+ Output: 0
config.nyls
- nylon config.nyls
- Settings
[ - Watchers
> Max Constant Watchers: 9;
> Max Dormant Watchers: 30;
> Max Active Watchers: 9;
- Console / Output
> Output: true;
> Ouput Errors: true;
]
- File Configuration.
[ > Watcher Folder: src/watchers/
> Start Script: startScript.nyl
> Packages Config: packages.nyls
]
unsorted stuff
Console Commands
Install Package
Command: nyl install
Example: nyl i discord.nyl
use @ after package name to define specific version.
Example: nyl i discord.nyl@v0.1
Run startScript.nyl
Command: nyl startScript
dnylconfig.nyls
- dnylconfig.nyls
[ - Developed By: Nylon Developments
- Version.
[ > ver: 0.1; ]
- Config.
[ > enabled: true; ]
]
Nylon Programming Language
The Nylon Programming Language takes inspiration from Bot Designer For Discords bdscript2 and the storage language yaml turning coding into a easily readable and translatable step by step process.
PART A
How Does Nylon Work?
The Nylon Programming Language (NPL) is a language that takes inspiration from Bot Designer For Discord`s (BDFD) BDscript2. But expands it to be able to be modified and used to program anything you can imagine.
PART A.1
Threading a language.
First when making a project in the Nylon Design Engine you have to pick a language to thread Nylon through, this dictates how the language will work and its functions letting you intergrate it with already existing projects in said language.
Nylon Native
Nylon Native is the raw Nylon based programming language the Nylom Design Engine uses. This is the most documenented and up to date thread within the Nylon Design Language and it is highly reccomended to recode your projects in Nylon Native and not to thread another language. (unless using html)
HTML / CSS
Nylon also can thread with HTML & CSS allowing for extremely easy website development. Example tray in html:
<table> <thead> <tr> <th colspan=3>===================================================================================</th> </tr> </thead> <tbody> <tr> <td colspan=3><${\color{green}BDFD \ \ WIKIS}$</td> </tr> <tr> <td>${\color{blue}BDFD}$</p></td> <td><code>Easy (1/5)</code></td> <td> <code>Published: 13/05/24</code> <br> <a class="link" href="https://github.com/Koomball/BDFD-Author-Only-Interactions/tree/main"> Author Only Interactions. </td> </tr> </tbody> </table>
In Nylon.html:
$table[$thead[$tr[$th[3;>===================================================================================]]] $tbody[ $tr[ $td[3;${\color{green}BDFD \ \ WIKIS}$]] $tr[ $td[1;${\color{blue}BDFD}$] $td[1;$code[Easy (1/5)]] $td[1;$code[Published: 13/05/24]$nline $hyperlink[Author Only Interactions;https://github.com/Koomball/BDFD-Author-Only-Interactions/tree/main]] ] ]]
Other Threads
- Javascript
- Typescript
- Python
- Lua
- C++