Browse Source

lua example

peter 3 months ago
parent
commit
f533af2a87
4 changed files with 25 additions and 0 deletions
  1. 25 0
      examples/lua/lua1.xml
  2. 0 0
      examples/test/entry.xml
  3. 0 0
      examples/test/ptypes.xml
  4. 0 0
      examples/test/schema.xml

+ 25 - 0
examples/lua/lua1.xml

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<KLISH
+    xmlns="http://clish.sourceforge.net/XMLSchema"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xsi:schemaLocation="http://clish.sourceforge.net/XMLSchema http://clish.sourceforge.net/XMLSchema/clish.xsd">
+
+<PLUGIN name="klish"/>
+
+<ENTRY name="COMMAND" purpose="ptype">
+    <ACTION sym="COMMAND"/>
+</ENTRY>
+
+<ENTRY name="main" mode="switch" container="true">
+
+  <ENTRY name="cmd" help="Clear settings" mode="sequence">
+    <ENTRY name="COMMAND" purpose="ptype" ref="/COMMAND"/>
+    <ACTION sym="lua">
+        for i=1,10 do
+            print(i)
+        end
+    </ACTION>
+  </ENTRY>
+</ENTRY>
+<PLUGIN name="lua"/>
+</KLISH>

+ 0 - 0
examples/entry.xml → examples/test/entry.xml


+ 0 - 0
examples/ptypes.xml → examples/test/ptypes.xml


+ 0 - 0
examples/schema.xml → examples/test/schema.xml