| |
|
|
| §10 - Syntax
The Syntax is deliberate on Praktikabilität getrimmt.
Lines-terminate and Semikolon separate command, except a Klammerung or String-Constant ragt over further Lines.
command and functions can as commands or function words go, z.B. print 123 or print(123).
Variablensyntax:
Arrays (and Assoziative):
a[0]=10
a.0=10
//
a["test"]["test"]=10
a.Test.Test=10
//
b=[10,20,30]
//
c=["Hallo"=10,"Welt"=["pt2"=20,"pt3"=30]]
|
|
|
| |
|
|
|
| New and rather declared:
iF (18.01.15)
Lines-terminate - but too the Semikolon - separate command. accordingly can several instructions too within of/ one row written go, and, one must the Semikolon not settle if one zeilenweises write bevorzugt. additionally is But too possible, a instruction over several Lines To distribute, simply in the one with clinging operates ( The Normalen ( ) or The Eckigen [ ] ) The first in nachfolgenden Lines (again) closed go. this take action might any Opportunities afford The desirable are. The XProfan'sche spelling for zeilenübergreifendes write, because to the Zeilenende one Backslash angefügt becomes, is in InfinityProfan unnecessary and also too "wrong" and becomes neither supported. Zeilenenden in InfinityProfan simply by "Enter"-characters settle, without further Maßnahmen grasp To must.CompileMarkSeparation//Beispiele für zeilenweises und zeilenübergreifendes Schreiben:
print "Dies ist
ein Text mit einer
Stringkonstante mit
Zeilenumbrüchen"
// ist das Selbe wie:
print "Dies ist\nein Text mit einer \nStringkonstante mit\nZeilenumbrüchen".
//
print 10+20;print 30+40
// ist das Selbe wie:
print 10+20
print 30+40
//
print (10
+20
+30)
// ist das Selbe wie:
print (10+20+30)
// nicht funktionieren würde jedoch:
print 10
+20
+30
// weil hier keine Klammer über die weiteren n force.
command can as commands or function words go, z.B. print 123 or print(123); |
|
|
| |
|
|
|
HofK | nice, so goes so one Schachtelfeld Real clear: CompileMarkSeparation// Name, essbar, Wochentag, Anzahl (3x)
var freieNatur =[
["Ameise", false, ["Mo",1001,"Mi",0,"Sa",2000 ] ],
["Taube", true, ["Mo", 2,"Mi",2,"Sa", 1 ] ],
["Feldmaus", false, ["Mo", 1,"Mi",2,"Sa", 0 ] ],
] >
|
|
|
| |
|
|
|
| New: Intern called "Space-Operator":
Klaus Hoffmeister (16.05.15)
the space, the Space Operator is a intelligenter Space Seperator, one intelligenter Trenner, one Space-Autoseparator short one Autoseparator, one polymorpher Seperator, so yet something polymorphes with InfinityProfan.
generally einfachere Syntax for Schreibfaule dank very nachdenklichem Präkompilierer:
Tragweitenbeispiele:
becomes compiled To:
or:
becomes compiled To:
The (Prä)Kompilierer takes one means plenty Schreibarbeit ex through recognition whether something as function or Funktionsparameter To understand is and complement whom View source self-employed.
but not:
write, can but again optimiert go To:
there String+Float = String is. |
|
|
| |
|
|
|
RGH | whether The programs therefore really lesbarer go ... |
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 05/14/15 ▲ |
|
|
|
|
| look we still time.
shining but natürlicher To his as the Übliche:
display rotate left objekt verb adjective
might the human rather reading can as display(rotate,left).
against it gekruxel: display klammer on rotate comma left klammer To against it gekruxel: display ( rotate , left )
likewise later mgl.: rotate display left or left rotate display
Since I something like as an further size the Betrachtung the Keywords andenke, quasi something like How "Rotate"... Yes what? or "left"... Yes what? The Präkompilierer the "ja what?" answer could through Festlegungen of Wertigkeiten of Schlüsselworten or testify.
as long as the whole without Einschränkungen in the reference on The usual Konventionen happen can, might it as Zugewinn recommended and but too felt go so a small breath into direction How Programmiersprachen Perhaps once go could, we're because finally Quantenrechner at home having.
After the Motto "Der understand already, as long as it differently hardly sense yields."
Perhaps ought to one the thing time a chance give. |
|
|
| |
|
|
|
HofK | RGH (14.05.15)
whether The programs therefore really lesbarer go ...
The einfachere Syntax for Schreibfaule dank very nachdenklichem Präkompilierer can thoroughly zugleich bequemer and übersichtlicher his, if one The slight multiple To schreibenden space with of/ one nichtproportionalen Font (z.B. Courier New) combined. in the Online IDE is the still with the colours perfect, here in the Codebox already ungünstiger and the vereinfachten mobilen Version can momentarily see, as possible yet ungünstiger is.
one recognize the too with herkömmlichem code. my obiges Schachtelfeld var freieNatur = [ ... I had for Codebox with Proportionalschrift extra "optimiert", mobil is it in the deliberate vereinfachten Box logischerweise then by no means clear and to copy into Online IDE sees one, How I with the space jongliert have.
gives the thoughtful Präkompilierer the Result of his "Denkprozesses" really readable on whom Humans out? about even bearbeitbar? |
|
|
| |
|
|
|
| the Result the Präkompilierers is for Humans hardly readable aufbereitet, hm. |
|
|
| |
|
|
|
GDL | Hallöle,
I have the still not understands. one setting Yes extra clinging because of the point to Strich rule.
(1+3)*2 =8 1+(3*2)=7
After take off one Grundschema becomes now calculated, if one 1+3*2 types ?
Grüßle Georg |
|
|
| |
|
|
|
RGH | usually goes Punktrechnung to Strichrechnung, means should here 7 get out. this is at least in all me known Programmiersprachen so.
Greeting Roland |
|
|
| XProfan X2Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4 | 05/31/15 ▲ |
|
|
|
|
GDL | Hallöle,
OK. the means, if one (1+3)*2 types, remaining The instruction in the Klammer receive or must one 2 Programmschritte make? a=1+3 a=a*2
is of course Offtopic, was but for me important to know with whom whole Vereinfachungen in the Syntax.
Grüßle Georg |
|
|
| |
|
|
|
| would be so did i not differently program, anyway functions nProcs and InfinityProfan very so.
there's hold Prioritäten:
clinging Punktrechnung Strichrechnung compare
so is the Abarbeitung clear: 10+(20-10)*30=40
20-10 10*30 10+300 310=40 false |
|
|
| |
|
|