The language is called AerScript or just Aer

This commit is contained in:
Rafal Kupiec 2018-08-01 16:35:30 +02:00
parent 449c427450
commit b3ffd9cd8a
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
1 changed files with 17 additions and 20 deletions

View File

@ -1,30 +1,27 @@
## P# Interpreter ## Aer Interpreter
P# is an Open Source, general-purpose, object-oriented scripting language suited also for web development as well as Aer (/ɛə/ from Latin: aer, meaning air) is a lightweight, OpenSource, general-purpose, object-oriented scripting programming
embedded environments. It implements a highly-efficient bytecode compiler and a virtual machine. Its syntax draws language suited also for web development as well as embedded environments. It implements a highly-efficient bytecode compiler
upon C#, Java and PHP. and a virtual machine. The term Aer is used interchangeably with AerScript. Its syntax draws upon C#, Java and PHP.
P# is the ideal language interpreter for writing enhanced web applications like blog, CMS, search engine, etc. or Aer is the ideal language interpreter for writing enhanced web applications like blog, CMS, search engine, etc. or
embedded solutions with dynamic web interfaces like routers, set-top-boxes, or smart home solutions. P# Interpreter embedded solutions with dynamic web interfaces like routers, set-top-boxes, or smart home solutions. Aer Interpreter
is based on PH7 Engine and thus it is 100% hand-coded, written in pure C software, that compiles unmodified and runs is based on PH7 Engine and thus it is 100% hand-coded, written in pure C software, that compiles unmodified and runs
on any platform including restricted embedded device with a C compiler. on any platform including restricted embedded device with a C compiler.
## Syntax ## Syntax
The core syntax of P# language is similar to that of other C-style languages such as C++, C#, Java or PHP. In particular: The core syntax of Aer language is similar to that of other C-style languages such as C++, C#, Java or PHP. In particular:
* Semicolons are used to denote the end of a statement. * Semicolons are used to denote the end of a statement.
* Curly brackets are used to group statements. Statements are commonly grouped into methods (functions), methods into * Curly brackets are used to group statements. Statements are commonly grouped into methods (functions), methods into
classes, and classes into namespaces. classes, and classes into namespaces.
* Variables are assigned using an equals sign, but compared using two consecutive equals signs. * Variables are assigned using an equals sign, but compared using two consecutive equals signs.
* Square brackets are used with arrays, both to declare them and to get a value at a given index in one of them. * Square brackets are used with arrays, both to declare them and to get a value at a given index in one of them.
Full P# Specification can be found on the [Wiki Pages](https://git.codingworkshop.eu.org/PSharp/psharp/wiki/P%23-v1.0-Specification). Full Aer Specification can be found on the [Wiki Pages](https://git.codingworkshop.eu.org/AerScript/aer/wiki/Aer-v1.0-Specification).
## P# - Modern PHP ## AerScript - Modern PHP
The name of the language was created analogically to C++ or C#. The ++ operator in all C-style languages, including PHP means Despite, that Aer syntax draws among others upon PHP, it is not fully compatible with it. Aer is a modern, pure Object-Oriented
an increase. Thus as C# is more than C++, and C++ is more than C, the P# is more than PHP.
Despite, that P# syntax draws among others upon PHP, it is not fully compatible with it. P# is a modern, pure Object-Oriented
Language. The distinctive features and powerful extensions to the PHP programming language are: Language. The distinctive features and powerful extensions to the PHP programming language are:
* Strict, full OOP, * Strict, full OOP,
* Method overloading, * Method overloading,
@ -42,28 +39,28 @@ Language. The distinctive features and powerful extensions to the PHP programmin
## 64-Bit Integer Arithmetic For All Platforms ## 64-Bit Integer Arithmetic For All Platforms
Unless most scripting and programming languages, P# have standardized the size of an integer and is always stored in 8 bytes Unless most scripting and programming languages, Aer have standardized the size of an integer and is always stored in 8 bytes
regardless of the host environment. Because there is no cross-platform way to specify 64-bit integer types P# includes typedefs regardless of the host environment. Because there is no cross-platform way to specify 64-bit integer types Aer includes typedefs
for 64-bit signed integers. Thanks to that, integers can store values between -9223372036854775808 and +9223372036854775807 for 64-bit signed integers. Thanks to that, integers can store values between -9223372036854775808 and +9223372036854775807
inclusive, both on 32-bit and on 64-bit host OS. inclusive, both on 32-bit and on 64-bit host OS.
## Build Instructions ## Build Instructions
P# is a multi-platform software, that can be built on any Operating System. On Unix-like. macOS and Cygwin it is as Aer is a multi-platform software, that can be built on any Operating System. On Unix-like. macOS and Cygwin it is as
easy as to fetch the source code and issue single command: easy as to fetch the source code and issue single command:
make [debug/release] make [debug/release]
Above command will build a P# interpreter with all its SAPI and modules with debug information or basic release optimization, Above command will build a Aer interpreter with all its SAPI and modules with debug information or basic release optimization,
depending on the chosen option. All object files produced by compiler and binaries, produced by linker will appear in ./build/ depending on the chosen option. All object files produced by compiler and binaries, produced by linker will appear in ./build/
directory. directory.
On Windows, it is required to install MingW32 or MingW64 to build the P# Interpreter using Makefile. However, it is also possible On Windows, it is required to install MingW32 or MingW64 to build the Aer Interpreter using Makefile. However, it is also possible
to use other C compiler, especially MSVC. to use other C compiler, especially MSVC.
## Licensing ## Licensing
P# and the PH7 Engine are OpenSource projects. That is, the complete source code of the engine, interpreter, language Aer and the PH7 Engine are OpenSource projects. That is, the complete source code of the engine, interpreter, language
specification, the official documentation and related utilities are available to download. P# is licensed under the specification, the official documentation and related utilities are available to download. Aer is licensed under the
[GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0-standalone.html) with a permission of Symisc Systems [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0-standalone.html) with a permission of Symisc Systems
to redistrubute PH7 Engine under the GPLv3. to redistrubute PH7 Engine under the GPLv3.