Native functions

Neurox has for the moment one native function

RUN(path)

The RUN function allows to execute a Neurox script located in a specified path.

local file_structure = {
    msdos = {
        name = "MSDOS",
        file_type = extensions.file_type.sys,
        parent = "root",
        content = "DEFINE NEUROX\nSET WinDir = 'C:\\WINDOWS'\nSET WinBootDir = 'C:\\WINDOWS'\nSET HostWinBootDrv = 'C'",
    },
}
DEFINE NEUROX
RUN("C:\MSDOS.SYS")

The content of the file MSDOS.SYS will be executed.

The PRINT function allows to print whatever you put as an argument in the console

DEFINE NEUROX
SET a = 5
SET b = 6
SET sum = SUM(a,n)
PRINT(sum)

>>> 11

Last updated