Zum Inhalt springen
CN

CSCS Native Scripting for iOS

Herausgeber: Vassili Kaplan
iOS Free
Ausführung1.1
Herausgeber Vassili Kaplan
Veröffentlichungsdatum09.09.2020
Datum hinzugefügt09.09.2020
Os AnforderungeniOS
BedarfRequires iOS 10.3 or later. Compatible with iPhone, iPad, and iPod touch.
Downloads insgesamt0
PreisFree

Beschreibung

CSCS (Customized Scripting in C#) kann jetzt für die native mobile Entwicklung verwendet werden.

Diese App enthält einen CSCS-Interpreter, mit dem Sie mit CSCS herumspielen können. Es gibt auch einige vorgefertigte Beispiele.

Sie können einen beliebigen CSCS-Skriptcode auf einer Registerkarte „Erstellen“ erstellen und die Ergebnisse dann auf einer anderen Registerkarte „Ausführen“ anzeigen.

Die Verwendung von CSCS für die mobile Entwicklung ist beschrieben unter:

- 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/

Ein Syncfusion E-Book, das CSCS beschreibt:

- https://www.syncfusion.com/resources/techportal/details/ebooks/implementing-a-custom-language

Ein weiteres Syncfusion-E-Book zur Verwendung für die mobile Entwicklung:

https://www.syncfusion.com/ebooks/writing_native_mobile_apps_in_a_functional_language_kurz

Das CSCS-Repository mit der Beschreibung der Sprache befindet sich unter:

https://github.com/vassilych/cscs

Das CSCS für das mobile Repository befindet sich unter:

https://github.com/vassilych/mobile

Diese App selbst wurde in CSCS erstellt. Hier ist der vollständige CSCS-Code:

AutoScale();

SetBackgroundColor("Cyan");

AddOrSelectTab("Erstellen", "test.png", "test2.png");

__locComboFiles=GetLocation("ROOT", "CENTER", "ROOT", "TOP", -100, 40);

AddCombobox(__locComboFiles, "__comboFiles", "center:white:clear", 350, 60);

__optionsComboFiles={"Sandbox", "Hallo, Welt!", "Anzeigen", "Beschäftigt-Anzeigen", "Einheitentests"};

AddWidgetData(__comboFiles, __optionsComboFiles, "", "center");

SetFontSize(__comboFiles, 13);

SetValue(__comboFiles, "text2", "Fertig");

SetValue (__comboFiles, "Ausrichtung", "Mitte");

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("Run", "learn.png", "run_icon.png");

function hideKeyboard(sender, arg) {

ShowHideKeyboard(__textView, false);//!IsKeyboard(__textView));

function comboFilesChanged(sender, arg) {

Zeile=GetValue (Absender);

WriteConsole("Combo row=", row);

text="";

wenn (Zeile == 1) {

text=ReadFileAsString("sfhello.cscs");

} elif (Zeile == 2) {

text=ReadFileAsString("ads.cscs");

} elif (Zeile == 3) {

text=ReadFileAsString("busyIndicators.cscs");

} elif (Zeile == 4) {

text=ReadFileAsString("unitTests.cscs");

SetText(__textView, Text);

Funktion tabSelected(sender, arg) {

tabId=int(arg);

if (tabId != 1) {

Rückkehr;

script=GetText(__textView);

RemoveTabViews(1);

Versuchen {

Skript ausführen);

} fangen (außer) {

AlertDialog("CSCS", exc);

WriteConsole (exc);

OnTabSelected("TabSelected");

SelectTab(0);

Ähnliche Programme

Alternativen

Mehr von diesem Verlag