| Version | 1.1 |
|---|---|
| Forlægger | Vassili Kaplan |
| Udgivelses dato | 9. sep. 2020 |
| Dato tilføjet | 9. sep. 2020 |
| Os krav | iOS |
| Krav | Requires iOS 10.3 or later. Compatible with iPhone, iPad, and iPod touch. |
| Samlet antal downloads | 0 |
| Pris | Free |
Beskrivelse
CSCS (Customized Scripting in C#) kan nu bruges til indbygget mobiludvikling.
Denne app indeholder en CSCS-tolk, som du kan bruge til at lege med CSCS. Der er også et par forudindstillede eksempler.
Du kan oprette en hvilken som helst CSCS-scripting-kode i én fane, "Opret", og derefter se resultaterne i en anden fane, "Kør".
Hvordan man bruger CSCS til mobiludvikling er beskrevet på:
- https://msdn.microsoft.com/en-us/magazine/mt829272
- http://www.codemag.com/article/1711081
- https://www.smashingmagazine.com/2020/01/cscs-scripting-language-cross-platform-development/
En Syncfusion E-bog, der beskriver CSCS:
- https://www.syncfusion.com/resources/techportal/details/ebooks/implementing-a-custom-language
Endnu en Syncfusion E-bog om, hvordan man bruger den til mobiludvikling:
https://www.syncfusion.com/ebooks/writing_native_mobile_apps_in_a_functional_language_succinctly
CSCS-lageret med beskrivelsen af sproget er på:
https://github.com/vassilych/cscs
CSCS til mobilt lager er på:
https://github.com/vassilych/mobile
Selve denne app blev produceret i CSCS. Her er den komplette CSCS-kode:
AutoScale();
SetBackgroundColor("cyan");
AddOrSelectTab("Opret", "test.png", "test2.png");
__locComboFiles=GetLocation("ROOT", "CENTER", "ROOT", "TOP", -100, 40);
AddCombobox(__locComboFiles, "__comboFiles", "center:white:clear", 350, 60);
__optionsComboFiles={"Sandbox", "Hej, verden!", "Annoncer", "Optaget-indikatorer", "Enhedstest"};
AddWidgetData(__comboFiles, __optionsComboFiles, "", "center");
SetFontSize(__comboFiles, 13);
SetValue(__comboFiles, "text2", "Done");
SetValue(__comboFiles, "alignment", "center");
AddAction(__comboFiles, "comboFilesChanged");
__locRemoveKeyboard=GetLocation(__comboFiles, "RIGHT", __comboFiles, "CENTER", 10);
AddButton(__locRemoveKeyboard, "__buttonKeyboard", "Keyboard", 150, 60);
SetFontSize(__buttonKeyboard, 12);
AddAction(__buttonKeyboard, "hideKeyboard");
__locScriptView=GetLocation("ROOT", "CENTER", __comboFiles, "BOTTOM", 0, 10);
AddTextEditView(__locScriptView, "__textView", "", 600, 900);
SetFontSize(__textView, 14);
AddOrSelectTab("Kør", "learn.png", "run_icon.png");
function hideKeyboard(sender, arg) {
ShowHideKeyboard(__textView, false);//!IsKeyboard(__textView));
function comboFilesChanged(sender, arg) {
række=GetValue(sender);
WriteConsole("Combo row=", row);
tekst="";
if (række == 1) {
text=ReadFileAsString("sfhello.cscs");
} elif (række == 2) {
text=ReadFileAsString("ads.cscs");
} elif (række == 3) {
text=ReadFileAsString("busyIndicators.cscs");
} elif (række == 4) {
text=ReadFileAsString("unitTests.cscs");
SetText(__textView, tekst);
function tabSelected(sender, arg) {
tabId=int(arg);
if (tabId != 1) {
Vend tilbage;
script=GetText(__textView);
RemoveTabViews(1);
prøve {
Kør(script);
} catch(exc) {
AlertDialog("CSCS", exc);
WriteConsole(exc);
OnTabSelected("tabSelected");
SelectTab(0);