| |
|
|
| Online-Compiler
Download external Download
in the Grunde can so from the own Program out View source Generate and on a function transfer, which then The suitable Binary returns. One Program could itself so too self program. means example for Include The Umsetzung as ProfO(nline)Comp.exe which whom code from the übergebenen File einläd, The named function from the Include anwendet and the Result as Exe save. Nachtrag: Roland has his OK given, Download supra.
// ©2008-2009 XProfan.com
// Version:0.0.1
{$cleq}
#include strings.inc
#include file.inc
#include onlinecompiler.inc
windowStyle 8 | 2 | 16
windowTitle XProfan.Coms Online Compiler V0.1
window 500,180
useicon a
print
Program:
;
string fileIn
case parCount : fileIn=par$(1)
case fileIn== : fileIn=loadFile$(View source-File,View source-File|*.PRF;*.XPRF)
case fileIn== : end 3
print fileIn,(;
string srcFle=fileIn,
binFle=notLastSubstr(srcFle,.)+.exe,
source=trim$(fgc(srcFle))//read input from file or generate
print len(source,
),Lines)
case source== : end
locate 5,2
print Zieldatei:
;binFle
locate 8,2
print Server kontaktieren...
huh.upload.CallerProcAddr=procAddr(statusProc,2)
string binary=onlineCompiler(source)
locate 8,2
print File write...
case fileExists(binFle) : fDelete(binFle)
fpc(binFle,binary)
locate 8,2
print ready.
waitInput 100
end
long statusProc(long h,state){
locate 8,2
select state
caseof 1:print preparing...
caseof 2:print Server kontaktieren...
caseof 3:print Waiting on Rückantwort...
caseof 4:print successful.
otherwise
print Waiting on Rückantwort... ;mid$(-\|/,((state*0.009) mod 4)+1,1)
endSelect
}
|
|
|
| |
|
|
|
| Übrigens, the Anwendungsbereich as Compiler is only one good example.
likewise could one z.B. simply one Image rendern and this zurückliefern or anderweitig something manage with Rückantwort. |
|
|
| |
|
|
|
| this is one Program which whom Online-Compiler uses, in order to kompilieren, with Help the onlinecompiler.inc which a function has, which View source a Variable by Online-Compiler in a Binary umwandelt and against as String zurückgibt. |
|
|
| |
|
|
|
RGH | and wozu should the meaningfully einsetzbar his? somewhere stand I here well yet on the Hose.
Greeting Roland |
|
|
| 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 | 02/26/09 ▲ |
|
|
|
|
| meaningfully einsetzbar? |
|
|
| |
|
|
|
| I faith iF has a manner EXECUTE made up, that not only in the Interpreter goes, separate now in Compiler. the would at least Real super, in the KI becomes the z.B. often used (prologue etc). |
|
|
| |
|
|
|
| Roland has his OK given, thatswhy the Online-Compiler to that Download: [...] Source: [...] .
its simply to that Piepen if your this Compiler once in Eurer IDE einstellt and a einfachen Profan7.6-Source compiled... *g*
Peter woodpecker
I faith iF has a manner EXECUTE made up, that not only in the Interpreter goes, separate now in Compiler. the would at least Real super, in the KI becomes the z.B. often used (prologue etc).
For this is XP-Scriptgeeignet, wohlbemerkt sooner The not yet erhältliche xp-script.inc and everybody can code transfer can and the Result z.B. as String zurückgeliefert becomes. so You can then very simply inside the own Program a integrierte Programming-Language offer. These function need I really since Okrea. |
|
|
| |
|
|
|
| If Roland it allows,
then could so did i again a Online-Compiler-interface herbilden - now then even XProfan 8.
alike but How, before must yet others Parts the Page restored go. ^^ |
|
|
| |
|
|