Our company (Australia, Sydney) has existed for 2 years. So - we decided a year ago to make our programming languages for development. More precisely, the very basis was already - closed languages programming of our predecessor company.
As a result, we received three programming languages - R.Script (microprocessors, computing programs), L.Script (GUI, Web applications) and the main one - W.Script (this language is the basis of the two previous ones and you can do whatever you want with it) .
In this article, for the first time on the Internet, I will talk about these
brain-killing fascinating programming languages.
')
R.Script
There are two editions of this language -
LLP and
HLP . The main edition that our programmers use is LLP. HLP is its extension and transformation into a fully functional programming language of the L.Script type (at the moment HLP is not used in our projects).
Consider LLP
In order to start the program, it is more accurate to tell the compiler what it is (usually this main body) you need to run the INCLUDE function:
LOAD(INCLUDE):
The colon at the end of the line is needed to open the body of this function (i.e., we did main {).
Now you need to load the API with which we will work:
PAR(STRING[~SYSTEM:.api>consoleapi#])
Now I think it's worth explaining this line. In any other language, it would look like this:
include("C:\Source\consoleapi.api");
That is, the string in this language begins with the character "~", and ends with the character "#". All strings must be processed with the STRING [] function; - square brackets are used because normal () has already been used in the string.
Now you need to complete the body of the document to further work with the API:
PAR(-END)
And close the body at all:
END
As a result, we get the program:
LOAD(INCLUDE): PAR(STRING[~SYSTEM:.api>consoleapi#]); PAR(-END); END
What is the hyphen in the PAR function for? And in order to fully complete the execution of the body. If we want to load Win32API we can continue:
LOAD(INCLUDE): PAR(STRING[~SYSTEM:.api>consoleapi#]); PAR(END); PAR(START); //, PAR(STRING[~SYSTEM:.fir>Windows:.api>win32#]); // C:\Source\Windows\win32.api PAR(-END); // END
And now, to display something you need to use the API. To do this, you need to create a body using the API:
LOAD(INCLUDE): PAR(STRING[~SYSTEM:.api>consoleapi#]); PAR(-END); END LOAD(API::CONSOLE-INCLUDE[PAR(LINE2)]): ECHO(): // , ( PAR(STRING[~Hello, world#]); PAR(-END); END // ECHO PAR(-END); // API END // API
As a result, we got the “small” program Hello, world, which can be compiled in almost all operating systems (it uses the console, in linux it uses the terminal).
UPD: This article is written to show what languages we use to program rocket, microcontroller and processor logic.
To be continued…