rainbow

pl2_en


PL/2 English of pl2_rainbow Russian journal


[sticky post]Welcome to PL/2 RainBow edition
Девятиэтажик радуга
mudrizm
Common syntax is prepared for a multilanguage (for any culture in Earth)
http://github.com/palexisru/pl2_rus/wiki - pl2c compiler
http://github.com/palexisru/pl2_international/wiki - culture infrastracture
Base ideasCollapse )

Adaptation of BNF
Девятиэтажик радуга
mudrizm
BNF for the description of grammar with unambiguous identification of rules in the table of analysis

Each rule consists from one (synonym) or two rules.

Recursive rules aren't defined by a name of an element of a collection of the difficult rule and repetition of a name of the recursive rule.

Recursive rules are defined by a name of an element of a collection of rules and a keyword "recursively".

The direction of a recursion is defined by a keyword arrangement "recursively" at the left or to the right of a name of the member of a collection.

Sequence of development of analyzers
Девятиэтажик радуга
mudrizm
1. The analyzer of the entrance file for the analysis of the meta ... /meta tags

2. The recursive analyzer of the description of language in the BNF format in namespace

3. The LR BNF analyzer of the description of language in the BNF format in namespace

meta sourse= description list extended
Девятиэтажик радуга
mudrizm
The program is inserted into the text file by means of the operator of meta having the following parameters ( https://github.com/palexisru/pl2_rus/wiki/file-meta ):

meta source="<mode>" name="<name>"

<mode> - translation mode
<name> - unique name in file for access with pl2.source.section[name]

translation mode may be are:

pl2 - PL/2 program text
text - multiline strings
form - form definition
menu - menu definition
game - PL/2 script algorithm
table - tuple list
tree - hierarhy data definithion
sql - SQL queries
html - part of HTML file

Published first edition of PL/2 syntax
Девятиэтажик радуга
mudrizm
Offers on an educational programming language - in Russian - http://habrahabr.ru/post/219419/

?

Log in