<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/chains/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/chains/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 04 Jun 2013 22:35:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/chains/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Alex McLain</title><link>https://sourceforge.net/p/chains/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,180 @@
-Welcome to your wiki!
+Chains
+------

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+~~~~~~~~~~~~~~~
+:::c
+(!**********************************************************
+    Example of how the Chains syntax should look.
+    
+    File extension = .axs.chains
+***********************************************************!)

-The wiki uses [Markdown](/p/chains/wiki/markdown_syntax/) syntax.
+PROGRAM_NAME = 'NetLinx Preparser'
+(^*********************************************************^)
+(^                        DEVICES                          ^)
+(^*********************************************************^)

-[[members limit=20]]
-[[download_button]]
+// Single device.
+dvTP        = 33000:1:0   'touchpanel-file[.tp4]'
+
+
+// Device combine.
+vdvTP       = 34000:1:0   'file-for-all-panels[.tp4]'
+    dvTP1   = 10001:1:0
+    dvTP2   = 10002:1:0
+    
+    
+// Optional device file paths can instruct a tool on how
+// to transfer the file without needing a workspace definition.
+
+(^*********************************************************^)
+(^                       CONSTANTS                         ^)
+(^*********************************************************^)
+
+MY_CONSTANT_INTEGER        = 1
+MY_CONSTANT_STRING     = 'a string'
+
+MY_CONSTANT_COMPOSITION = "#[var type]{MY_CONSTANT_STRING} plus another string"
+
+(^*********************************************************^)
+(^                        INCLUDES                         ^)
+(^*********************************************************^)
+
+#include 'amx-lib-log'
+
+(^*********************************************************^)
+(^                       STRUCTURES                        ^)
+(^*********************************************************^)
+
+volume:
+    ui lvl
+    ch mute
+    ui max
+    ui min
+    ui step
+    ch dim
+    ui dimAmount
+
+(^*********************************************************^)
+(^                       VARIABLES                         ^)
+(^*********************************************************^)
+
+ui myVar = 123
+
+/*
+// Variable types:
+ui unsigned int
+si signed int
+ul unsigned long
+sl signed long
+ch character
+wc wide character
+st string (char[255])
+st[#]  string (char[#])
+dv  device
+dc  devchan
+[named]    user-defined type
+*/
+
+// Split after equals.
+ui myVar2 =
+   456
+
+(^*********************************************************^)
+(^                       FUNCTIONS                         ^)
+(^*********************************************************^)
+
+volumeUp (ui chan) -&gt;
+    doStuff chan
+    
+// Split parameters on open parenthesis.
+sinteger setVolume(
+   ui channel
+   ui level
+) -&gt;
+   doStuff channel, level
+   
+
+(^*********************************************************^)
+(^                         EVENTS                          ^)
+(^*********************************************************^)
+
+startup =&gt;
+
+mainline =&gt;
+
+data =&gt; vdvTP
+   string -&gt;
+       doStuff
+   
+   online -&gt;
+
+// How to handle multiple channels / dev-chans.
+// List kind of like an array?
+
+button =&gt; vdvTP, CHANNEL_NUMBER
+   push -&gt;
+       doStuff
+   
+   release -&gt;
+       doStuff
+
+
+button =&gt;
+   vdvTP, CHANNEL_NUMBER_1
+   vdvTP, CHANNEL_NUMBER_2
+   DEV-CHAN
+
+   push -&gt;
+       doStuff
+
+   release -&gt;
+       doStuff
+
+(^*********************************************************^)
+
+// Header: (! *)
+
+// Comments: //, /* */, (* *)
+
+// Comments omitted from NetLinx: //^, /^ */, (^ *)
+
+// Ranges:
+   [1..5]      // [1, 2, 3, 4, 5]
+   [1...5]     // [1, 2, 3, 4]
+
+// Loops:
+   for i in items
+       doStuff i
+
+   for i in [1..5]
+       doStuff i
+
+// Ternary:
+   a = i &gt; 3 ? x : y
+
+// Switch, Case
+   switch i
+   case 1
+       doStuff
+   case 2
+       doStuff
+
+   case 3: doStuff
+   case 4: doStuff
+
+// Case, When
+
+   case i
+   when 1
+       doStuff
+   when 2: doStuff
+   when x
+
+   
+(^*********************************************************^)
+(^                     END OF PROGRAM                      ^)
+(^          DO NOT PUT ANY CODE BELOW THIS COMMENT         ^)
+(^*********************************************************^)
+
+~~~~~~~~~~~~~~~
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex McLain</dc:creator><pubDate>Tue, 04 Jun 2013 22:35:10 -0000</pubDate><guid>https://sourceforge.net1c8c8b18ce61628404d8c1f6df912005d3428f95</guid></item><item><title>Home modified by Alex McLain</title><link>https://sourceforge.net/p/chains/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/chains/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;&lt;ul class="md-users-list"&gt;&lt;li&gt;&lt;a href="/u/amclain/"&gt;Alex McLain&lt;/a&gt; (admin)&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&lt;span class="download-button-519edc26a02bb15fad0c309d" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex McLain</dc:creator><pubDate>Fri, 24 May 2013 03:19:02 -0000</pubDate><guid>https://sourceforge.net16daf012e4a7443b3ff0ca199b0c0957e415b172</guid></item></channel></rss>