0.1.0 • Published 7 years ago

alexscripts-cat-lang v0.1.0

Weekly downloads
-
License
MIT or Apache-2.0
Repository
-
Last release
7 years ago

Welcome to Cat

The cat is a next-gen programming language for production and fast development.


Table of Contents

  • The Basics of command structure in Cat
  • The print command
  • The insert command
  • Variable definition

The command structure

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 command

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.


The insert command

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;.


The variable definition

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. 1. Cat by The Cat Authors 2. Cat is open source software 3. Cat written on JavaScript(parser generated by PegJS) 4. I`m(Official author of Cat) not English, sorry for errors in text(if they exists)


Copyright (C) The Cat Authors, 2017.