The cat is a next-gen programming language for production and fast development.
- The Basics of command structure in Cat
- The print command
- The insert command
- Variable definition
Structure of Cat is not very clear for C or C#, Java and C++ Programmers. The String is Cat writing without "". As example, string is Cat looks like
`Hello World`
Next, the arguments of function withou open and close brackets. Other is standart
The print is using in all of existing programming languages. In Cat, print is a defined function(not exists in today version of language(today it's a static function) ).
The print syntax:
print <text>
As example, print Hello World;
outputs Hello World in stdout.
Insert command is created for inserting not-inserting symbols(\n, \t). To insert a new line, use insert n;
. Or, to insert a tab, use insert t;
.
To define a variable, use # symbol. As example, to define testVar variable, use #testVar = Content of Variable;
. The spaces before and after = is required. Else, the compiler put an error. To print a variable, use # symbol in text of print.
print #testVar;
Output`s "Content of Variable"
#P.S.
- Cat by The Cat Authors
- Cat is open source software
- Cat written on JavaScript(parser generated by PegJS)
- I`m(Official author of Cat) not English, sorry for errors in text(if they exists)
Copyright (C) The Cat Authors, 2017.