The basics
Neurox is a high-level language, easy to understand and to manipulate. It is coded with LuaU, meaning that many features are similar to LuaU.
How it works
Many features such as error handling, garbage collector, metamethods, metatables etc are handled by LuaU. We do not need to evoke these features in this documentation.
Neurox is constructed on several module scripts & scripts with built-in methods & functions used to read long strings.
Reading a script
A Neurox code must be in a Neurox compatible file. Its content is always located in file_name.content.
neurox_file = {
name = "neurox_file",
file_type = extensions.file_type.exe,
parent = "root",
content = "//this is a script\nDEFINE NEUROX\nSET var = 'hello world'",
},The neurox script look like this after being unformatted
//this is a script
DEFINE NEUROX
SET var = "hello world"First of all the interpreter will remove every comments
DEFINE NEUROX
SET var = 'hello world'Then, it separates each lines and stores them in a table
local neuroxScriptTable = {
[1] = "DEFINE NEUROX",
[2] = "SET var = 'hello world'"
}If the first key is "DEFINE NEUROX", then the interpreter will browse every element by element and execute line by line the code. In this case, it will only add a new variable called "var" with the value "hello world"
Last updated