English
Functions and Help

§10 - Syntax

 
§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.
//Examples of zeilenweises- and zeilenübergreifendes write:
print "Dies is
one Text with of/ one
Stringkonstante with
Zeilenumbrüchen"
print "Dies is\No Text with of/ one \nStringkonstante with\nZeilenumbrüchen."
print 10+20;print 30+40
print 10+20
print 30+40
print (10
+20
+30)
print (10+20+30)

command and functions can as commands or function words go, z.B. print 123 or print(123).

Variablensyntax:
a=10
a=10,b=10
a=10 b=10

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]]
 
01/18/15  
 



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);
 
05/12/15  
 




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 ]  ],
]
>
 
05/12/15  
 



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:
print rgb 10 20 30

becomes compiled To:
print(rgb(10,20,30))

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:
return  a + " = " + st(sqrt(a*a+b*b))
//simply:
return  a + " = " + st sqrt a*a+b*b

write, can but again optimiert go To:
return  a + " = " + sqrt a*a+b*b

there String+Float = String is.
 
05/14/15  
 




RGH
whether The programs therefore really lesbarer go ...
 
XProfan X2
Intel 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.
 
05/14/15  
 




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?
 
05/15/15  
 



the Result the Präkompilierers is for Humans hardly readable
aufbereitet, hm.
 
05/15/15  
 




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
 
XProfan X3
Windows7 Xprofan 8,9,10 [...]  [...] 
05/31/15  
 




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 X2
Intel 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
 
XProfan X3
Windows7 Xprofan 8,9,10 [...]  [...] 
05/31/15  
 



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
 
05/31/15  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

22.583 Views

Untitledvor 0 min.
Swissmade09/06/24
p.specht04/21/19
Micha1233408/06/17
funkheld04/20/17
More...

Themeninformationen

this Topic has 4 subscriber:

iF (7x)
HofK (6x)
GDL (2x)
RGH (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie