English
Functions and Help

§10 - Syntax

 
- Page 1 -


§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  
 



 
- Page 1 -


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  
 



 
- Page 2 -



HofK
Teste straight The Opportunities the Space-Operators



...



... an so on.

App functions.

now let I in the marked row
koerper = "Würfel"; kantenlaenge = 5
the Semikolon lane. only one space part.

The Kompilierer is pleased, The App becomes by Reciever immediate anstandslos installs and to the open there? - a black Beta-screen.

but already powerful clinging and Kommata gespart. and it remaining well readable, especially since in the comparison To Android Java
 
11/06/15  
 



really is the Spaceoperator not so virtual for var and print,
print z.B. has as 2. Parameter none String etc.:

print ( { string | long | float | aray | boolean } [, long Textfarbe [, long Backgroundcolor ] ] )

It's all right sooner therefore, Parameter The with comma To separate are, too
simply with Space write to - so How You with the Cls make.

The Space-Operator can only the comma supplant, not + or - or...
 
11/06/15  
 




HofK
the was me hold not yet 100% clear, especially since it the Kompilierer swallow and ...
iF (31.05.15)
... so very tidy parst, that even Line break and Semikolon for Zeilentrennung not coercive necessary are.
...
print(2)return 10 print 5


there I will time typische Examples and "Gegenbeispiele" package and a Overview for Beginner from it make.
 
11/07/15  
 




HofK
Space-Operatoeur

a little bit rumwurzeln!

To risks and side-effects reading SIE usually not The P. insertreference or ask ihren doctorProgrammer or pharmacistBuchschreiber.

The Wurzelbehandlung:

// InfinityProfan Program v0.7.12
var str_text = "mm"
var str_leer = ""
var str_zero = "0"
var str_zahl = "900"
var null_var = zero
var a = 3
var b = 4
print "??? rumwurzeln ???"
print "Die simple Variante /too with Space-Operator."
print "  c = " + st(sqrt(a*a+b*b))// gives 5 = root 25 from
print "  c = " + st sqrt a*a+b*b// gives 5
print "  c = " + sqrt a*a+b*b// gives 5
print "Jetzt goes it schief: "
print "          c = " + sqrt a*a+b*b + "mm"// gives NaN hardship a Number because of "mm"
print "Da goes what! "
print "  c = " + sqrt a*a+b*b + ""// gives 5 from
print "  c = " + sqrt a*a+b*b + "0"// gives 15.8.. = root 250 from
print "  c = " + sqrt a*a+b*b + "900"// gives 16.9.. = root 25900 from
print "  c = " + sqrt a*a+b*b + zero// gives 5 from
print "... without root ..."
print a*a+b*b + str_text// gives 25mm from
print a*a+b*b + str_leer// gives 25 from
print a*a+b*b + str_zero// gives 250 from
print a*a+b*b + str_zahl// gives 25900 from
print a*a+b*b + null_var// gives 25 from
print " ... with root ..."
print "  c = " + sqrt a*a+b*b + str_text// gives NaN from
print "  c = " + sqrt a*a+b*b + str_leer// gives 5 from
print "  c = " + sqrt a*a+b*b + str_zero// gives 15.8.. = root 250 from
print "  c = " + sqrt a*a+b*b + str_zahl// gives 16.9.. = root 25900 from
print "  c = " + sqrt a*a+b*b + null_var// gives 5 from
print "---------------------------------
"
print "So ought to it his: "
print  "     c = " + sqrt(a*a+b*b) + "mm"// gives 5mm from...here Klammer necessary!
//
// ... as long as tappt im dunkeln still in the XProfan.api missing BETA !

proc sqrt(p1)

    return math(math.sqrt,p1)

endproc


Related  [...] 
 
11/18/15  
 




HofK
Teste straight so to me there and must too time einstecken .

thereby have I discover , that Infinity-Profan To while sowohl endwhile as well as wend as Abschluss How in the reference indicated objectively swallow.


this is the Ansatz for a polymorphe (I love this Fremdwort ) Syntax. though ought to it always slight discernible stay circa different programs vergleichbar To hold. with wend is the sure given.

it increased naturally The number the reserved Schlüsselwörter.
but who definiert already a Variable wend, if it not only a only Programming-Language knows.

there while so one doppeltes end beschert bekommmen has, would it only logical, yet some sinnvolle Ergänzungen To effect (ev. later with IPextended or so ).

How wär's z.B. with proc procedure func function and its terminate?
then could one itself/others already formal get across, whether one a worth returns and must in umfangreichen Funktionsprozeduren not to the/whom return(s) look.

Since there it sure yet More Kandidaten. with §99 is already of/ one implied pic(ture). and select or. switch are too Kandidaten - see § 8 - Kontrollstrukturen.

Nachtrag: To i++ i-- prefer some Progger the inc i dec i.

and Thanks Präkompilierer affect the quite sure not even whom actual Compiler.
 
11/19/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.570 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