Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Weichel2018-06-15 21:08:44 +0000
committerChristian Weichel2018-06-15 21:08:44 +0000
commit30883e30d1a5443e6c0eaedf1d51ae5a095bec39 (patch)
tree768675f2ee4138e10bdcd0cea21ee3597849f683
parent976fec569a87959699a07a407b76c64b0f635597 (diff)
downloadmita-30883e30d1a5443e6c0eaedf1d51ae5a095bec39.tar.gz
mita-30883e30d1a5443e6c0eaedf1d51ae5a095bec39.tar.xz
mita-30883e30d1a5443e6c0eaedf1d51ae5a095bec39.zip
Fixing the path - again
-rw-r--r--categories/index.xml4
-rw-r--r--concepts/index.html48
-rw-r--r--download/index.html42
-rw-r--r--faq/index.html42
-rw-r--r--index.html44
-rw-r--r--index.xml60
-rw-r--r--language/arrays/index.html51
-rw-r--r--language/basics/index.html49
-rw-r--r--language/events/index.html47
-rw-r--r--language/exceptions/index.html47
-rw-r--r--language/foreignfunctioninterface/index.html49
-rw-r--r--language/functions/index.html47
-rw-r--r--language/index.xml44
-rw-r--r--language/introduction/index.html45
-rw-r--r--language/packages/index.html47
-rw-r--r--language/setup/index.html49
-rw-r--r--language/types/index.html51
-rw-r--r--platforms/index.xml8
-rw-r--r--platforms/xdk110/index.html47
-rw-r--r--sitemap.xml38
-rw-r--r--tags/index.xml4
21 files changed, 448 insertions, 415 deletions
diff --git a/categories/index.xml b/categories/index.xml
index 4e808a0..9accc79 100644
--- a/categories/index.xml
+++ b/categories/index.xml
@@ -2,12 +2,12 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Categories on Eclipse Mita</title>
- <link>/mita/categories/</link>
+ <link>/categories/</link>
<description>Recent content in Categories on Eclipse Mita</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
- <atom:link href="/mita/categories/index.xml" rel="self" type="application/rss+xml" />
+ <atom:link href="/categories/index.xml" rel="self" type="application/rss+xml" />
</channel>
diff --git a/concepts/index.html b/concepts/index.html
index 5461566..1290b28 100644
--- a/concepts/index.html
+++ b/concepts/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../mita/concepts/">
+ <link rel="canonical" href="../concepts/">
- <meta property="og:url" content="/mita/concepts/">
+ <meta property="og:url" content="/concepts/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../stylesheets/application.css">
+ <link rel="stylesheet" href="../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../mita/css/custom.css">
+ <link rel="stylesheet" href="../css/custom.css">
- <script src="../mita/javascripts/modernizr.js"></script>
+ <script src="../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../mita/" class="project">
+ <a href="../" class="project">
<div class="banner">
<div class="logo">
- <img src="../mita/images/mita.svg">
+ <img src="../images/mita.svg">
</div>
<div class="name">
@@ -406,7 +406,7 @@ a bunch of sensors such as an accelerometer or temperature sensor,
and maybe some low-level input/output like <a href="https://en.wikipedia.org/wiki/GPIO">general-purpose IO</a>, <a href="https://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus">SPI</a> or <a href="https://en.wikipedia.org/wiki/I2C">I2C</a>.</p>
<p>In Mita we call those components system resources, as they are finite resources available to you as developer.
-Some system resources can be instantiated multiple times (see the <a href="../mita/language/setup/">setup section</a>), others only exist once.
+Some system resources can be instantiated multiple times (see the <a href="../language/setup/">setup section</a>), others only exist once.
However, all system resources share the same features. They can be configured using <em>configuration-items</em>, can provide data at runtime using <em>modalities</em>, can offer means to communicate with the outside world using <em>signals</em> and can provide <em>events</em> for you to react to.</p>
<h3 id="configuration-items">Configuration Items</h3>
@@ -416,7 +416,7 @@ For example, an acceleration sensor might have a range in which it is capable of
Or a light sensor might take some time to measure how much light is available - the more time spent measuring the better the measurement, but the longer it takes. This measurement time can be configured.
Configuration items all have a data type and are prescribed by the platform definition.</p>
-<p>For example, the Bosch Cross Domain Development Kit (<a href="../mita/platforms/xdk110/">XDK110 platform</a>) supports a light sensor where one can configure the measurement time (they call it <em>integration time</em>):</p>
+<p>For example, the Bosch Cross Domain Development Kit (<a href="../platforms/xdk110/">XDK110 platform</a>) supports a light sensor where one can configure the measurement time (they call it <em>integration time</em>):</p>
<div class="highlight"><pre class="chroma"><code class="language-TypeScript" data-lang="TypeScript"><span class="kr">package</span> <span class="nx">main</span><span class="p">;</span>
<span class="kr">import</span> <span class="nx">platforms</span><span class="p">.</span><span class="nx">xdk110</span><span class="p">;</span>
@@ -426,7 +426,7 @@ Configuration items all have a data type and are prescribed by the platform defi
<h3 id="modalities">Modalities</h3>
<p>Modalities are things that can change at runtime, for example sensor values or the signal strength of a radio. Modalities are prescribed by the platform definition. You as developer do not have to set them up but they are simply available to you.
-There is a read method defined for them which allows you to read the modality at any time. For example, take the light sensor of the (<a href="../mita/platforms/xdk110/">XDK110 platform</a>):</p>
+There is a read method defined for them which allows you to read the modality at any time. For example, take the light sensor of the (<a href="../platforms/xdk110/">XDK110 platform</a>):</p>
<div class="highlight"><pre class="chroma"><code class="language-TypeScript" data-lang="TypeScript"><span class="kr">package</span> <span class="nx">main</span><span class="p">;</span>
<span class="kr">import</span> <span class="nx">platforms</span><span class="p">.</span><span class="nx">xdk110</span><span class="p">;</span>
@@ -444,7 +444,7 @@ There is a read method defined for them which allows you to read the modality at
<span class="c1">// x, y, z come from the same sample
</span><span class="c1"></span><span class="p">}</span></code></pre></div>
-<p>The code generator that ships with the system resource (in this case the code generator provided by the <a href="../mita/platforms/xdk110/">XDK110 platform</a>) can choose to group modality access, so that the data read from them is coherent.</p>
+<p>The code generator that ships with the system resource (in this case the code generator provided by the <a href="../platforms/xdk110/">XDK110 platform</a>) can choose to group modality access, so that the data read from them is coherent.</p>
<h3 id="signals">Signals</h3>
@@ -543,7 +543,7 @@ we can tell you if that access will work out or not; before you run your code.</
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../mita/download/" title="Download">
+ <a href="../download/" title="Download">
<span class="direction">
Previous
</span>
@@ -591,7 +591,7 @@ we can tell you if that access will work out or not; before you run your code.</
</script>
- <script src="../mita/javascripts/application.js"></script>
+ <script src="../javascripts/application.js"></script>
<script>
diff --git a/download/index.html b/download/index.html
index 1a30a9b..c20e281 100644
--- a/download/index.html
+++ b/download/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../mita/download/">
+ <link rel="canonical" href="../download/">
- <meta property="og:url" content="/mita/download/">
+ <meta property="og:url" content="/download/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../stylesheets/application.css">
+ <link rel="stylesheet" href="../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../mita/css/custom.css">
+ <link rel="stylesheet" href="../css/custom.css">
- <script src="../mita/javascripts/modernizr.js"></script>
+ <script src="../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../mita/" class="project">
+ <a href="../" class="project">
<div class="banner">
<div class="logo">
- <img src="../mita/images/mita.svg">
+ <img src="../images/mita.svg">
</div>
<div class="name">
@@ -391,7 +391,7 @@
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../mita/language/exceptions/" title="Exceptions">
+ <a href="../language/exceptions/" title="Exceptions">
<span class="direction">
Previous
</span>
@@ -411,7 +411,7 @@
<div class="next">
- <a href="../mita/concepts/" title="Concepts">
+ <a href="../concepts/" title="Concepts">
<span class="direction">
Next
</span>
@@ -455,7 +455,7 @@
</script>
- <script src="../mita/javascripts/application.js"></script>
+ <script src="../javascripts/application.js"></script>
<script>
diff --git a/faq/index.html b/faq/index.html
index 9b491ab..5043e39 100644
--- a/faq/index.html
+++ b/faq/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../mita/faq/">
+ <link rel="canonical" href="../faq/">
- <meta property="og:url" content="/mita/faq/">
+ <meta property="og:url" content="/faq/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../stylesheets/application.css">
+ <link rel="stylesheet" href="../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../mita/css/custom.css">
+ <link rel="stylesheet" href="../css/custom.css">
- <script src="../mita/javascripts/modernizr.js"></script>
+ <script src="../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../mita/" class="project">
+ <a href="../" class="project">
<div class="banner">
<div class="logo">
- <img src="../mita/images/mita.svg">
+ <img src="../images/mita.svg">
</div>
<div class="name">
@@ -399,7 +399,7 @@
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../mita/language/setup/" title="System Setup">
+ <a href="../language/setup/" title="System Setup">
<span class="direction">
Previous
</span>
@@ -419,7 +419,7 @@
<div class="next">
- <a href="../mita/language/types/" title="Types">
+ <a href="../language/types/" title="Types">
<span class="direction">
Next
</span>
@@ -463,7 +463,7 @@
</script>
- <script src="../mita/javascripts/application.js"></script>
+ <script src="../javascripts/application.js"></script>
<script>
diff --git a/index.html b/index.html
index ef43b48..afc7251 100644
--- a/index.html
+++ b/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="./mita/">
+ <link rel="canonical" href="./">
- <meta property="og:url" content="/mita/">
+ <meta property="og:url" content="/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="./mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="./mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="./images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="./images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="./mita/stylesheets/application.css">
- <link rel="stylesheet" href="./mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="./mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="./mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="./stylesheets/application.css">
+ <link rel="stylesheet" href="./stylesheets/temporary.css">
+ <link rel="stylesheet" href="./stylesheets/palettes.css">
+ <link rel="stylesheet" href="./stylesheets/highlight/highlight.css">
@@ -64,13 +64,13 @@
</style>
- <link rel="stylesheet" href="./mita/css/custom.css">
+ <link rel="stylesheet" href="./css/custom.css">
- <script src="./mita/javascripts/modernizr.js"></script>
+ <script src="./javascripts/modernizr.js"></script>
- <link href="./mita/index.xml" rel="alternate" type="application/rss+xml" title="Eclipse Mita" />
- <link href="./mita/index.xml" rel="feed" type="application/rss+xml" title="Eclipse Mita" />
+ <link href="./index.xml" rel="alternate" type="application/rss+xml" title="Eclipse Mita" />
+ <link href="./index.xml" rel="feed" type="application/rss+xml" title="Eclipse Mita" />
</head>
@@ -134,11 +134,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="./mita/" class="project">
+ <a href="./" class="project">
<div class="banner">
<div class="logo">
- <img src="./mita/images/mita.svg">
+ <img src="./images/mita.svg">
</div>
<div class="name">
@@ -374,7 +374,7 @@
<article class="article">
<div class="wrapper">
<div style="width:100%; text-align:center">
- <img src="./mita/images/mita.svg" height="200">
+ <img src="images/mita.svg" height="200">
</div>
<p>Eclipse Mita is a programming language that is focused on making Internet-Of-Things things easier to program, especially for developers without an embedded development background.
@@ -415,7 +415,7 @@ Its syntax was designed to make you feel right at home.</p>
</script>
- <script src="./mita/javascripts/application.js"></script>
+ <script src="./javascripts/application.js"></script>
<script>
diff --git a/index.xml b/index.xml
index b4cff64..7a38fb5 100644
--- a/index.xml
+++ b/index.xml
@@ -2,79 +2,79 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Eclipse Mita</title>
- <link>/mita/</link>
+ <link>/</link>
<description>Recent content on Eclipse Mita</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
<lastBuildDate>Tue, 18 Jul 2017 14:18:49 +0200</lastBuildDate>
- <atom:link href="/mita/index.xml" rel="self" type="application/rss+xml" />
+ <atom:link href="/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Introduction</title>
- <link>/mita/language/introduction/</link>
+ <link>/language/introduction/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/introduction/</guid>
+ <guid>/language/introduction/</guid>
<description>Mita is a programming language that is focused on making Internet-Of-Things things easier to program, especially for developers without embedded development background. Its language design and feature-set are meant to make anyone coming from a world of Javascript, Typescript, Java, Swift or Go feel right at home. Compared to C you do not have to care about allocating memory, strings behave naturally, as do arrays. Featuring powerful abstractions and a model-driven system configuration approach we can often tell at compile time if something will not work.</description>
</item>
<item>
<title>Basics</title>
- <link>/mita/language/basics/</link>
+ <link>/language/basics/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/basics/</guid>
+ <guid>/language/basics/</guid>
<description>Variables By default, variables in Mita are immutable, which helps us optimize the generated code. However, you can always choose to make variables mutable if you need it. When a variable is immutable, its value has to be set during declaration and cannot be changed afterwards. The following code snippet illustrates the idea (we&amp;rsquo;ve omitted the package and import statements for brevity):
fn main() { let x = 42; println(`The value of x is ${x}`); x = 64; println(`The value of x is now ${x}`); } When you save this code, you will see an error message Assignment to constant not allowed.</description>
</item>
<item>
<title>Packages</title>
- <link>/mita/language/packages/</link>
+ <link>/language/packages/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/packages/</guid>
+ <guid>/language/packages/</guid>
<description>In Mita code is organized in packages, which serve multiple purposes:
Divide the namespace: Mita programs have one global namespace per .x file. Unlike Java for example, there are no means to qualify the name of an element. Packages are used to keep this namespace clean. Only things which are explicitly imported from other packages are visible in that namespace. See Importing Packages for more details. Group code: packages are a formidable way to group code which conceptually belongs together.</description>
</item>
<item>
<title>System Setup</title>
- <link>/mita/language/setup/</link>
+ <link>/language/setup/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/setup/</guid>
+ <guid>/language/setup/</guid>
<description>System resources have properties which we can configure. For example, an accelerometer has an acceleration range, a filter bandwidth and some power modes which we can change. If we wanted to use Bluetooth for communication we would have to set up the GATT characteristics, device name and advertising interval. If we wanted to connect to a WLAN network, we would have to configure the network name and a preshared key.</description>
</item>
<item>
<title>Frequently Asked Questions</title>
- <link>/mita/faq/</link>
+ <link>/faq/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/faq/</guid>
+ <guid>/faq/</guid>
<description>Who is builds Mita? BCDS
Why would you invent a new programming language? Because nothing that was out there was suitable.</description>
</item>
<item>
<title>Types</title>
- <link>/mita/language/types/</link>
+ <link>/language/types/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/types/</guid>
+ <guid>/language/types/</guid>
<description>Primitive Types We have already seen the basic data types supported by Mita. Primitive types are also called scalar types in other languages, as they contain a single value. Complex types on the other hand represent more than a single value, or are defined by the programmer. There is one type where that distinction is not as clear as it may sound: strings.
Strings In C there are no strings, but only arrays of characters and some conventions.</description>
</item>
<item>
<title>Arrays</title>
- <link>/mita/language/arrays/</link>
+ <link>/language/arrays/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/arrays/</guid>
+ <guid>/language/arrays/</guid>
<description>Arrays are a fixed-size sequence of objects. In Mita, arrays can hold any type:
var array1 : array&amp;lt;int32&amp;gt;; struct vec2d { var x : int32; var y : int32; } let array2 : array&amp;lt;vec2d&amp;gt;; Initialization There are multiple ways to initialize and fill arrays:
let array1 : array&amp;lt;int32&amp;gt; = new array&amp;lt;int32&amp;gt;(size = 10); let array2 : array&amp;lt;int32&amp;gt; = [1,2,3,4]; Length Mita arrays know how long arrays are, unlike C arrays.</description>
@@ -82,20 +82,20 @@ let array1 : array&amp;lt;int32&amp;gt; = new array&amp;lt;int32&amp;gt;(size =
<item>
<title>Functions</title>
- <link>/mita/language/functions/</link>
+ <link>/language/functions/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/functions/</guid>
+ <guid>/language/functions/</guid>
<description>Functions play an important role in Mita. They give the language a modern feel through features that go beyond what C has to offer, such as polymorphism and extension methods.
You have already seen the fn keyword, which allows you to declare new functions. Alternatively you can use function instead of fn if that suits your style better. By convention in Mita functions are named in camel case style. In camel case, words are separated by capital letters and for functions we start with a lower-case one.</description>
</item>
<item>
<title>XDK110</title>
- <link>/mita/platforms/xdk110/</link>
+ <link>/platforms/xdk110/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/platforms/xdk110/</guid>
+ <guid>/platforms/xdk110/</guid>
<description>The Bosch Cross Domain Development Kit (XDK) is a programmable sensor device for building IoT applications. It contains a wide range of sensors and means of connectivity, is extensible using its extension bus. Due to its versatility it also serves as reference platform for Mita.
To learn more about the XDK head over to http://xdk.io.
Sensor: environment (BME280) Configuration Items Name Description optional power_mode : BME280_PowerMode Defaults to BME280_PowerMode.</description>
@@ -103,19 +103,19 @@ Sensor: environment (BME280) Configuration Items Name Description optiona
<item>
<title>Foreign Function Interface</title>
- <link>/mita/language/foreignfunctioninterface/</link>
+ <link>/language/foreignfunctioninterface/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/foreignfunctioninterface/</guid>
+ <guid>/language/foreignfunctioninterface/</guid>
<description>Mita transpiles to C code, i.e. the compiler produces C code rather than a binary executable. This begs the question if we can call existing C code from within Mita programs. Such integration of the &amp;ldquo;target language&amp;rdquo; is referred to as foreign function interface (or FFI in short) because the functions we wish to call from within Mita are defined in a foreign language: C. Other languages sport similar concepts, for example TypeScript supports declarations which allow you to use code written in JavaScript (the language TypeScript compiles to).</description>
</item>
<item>
<title>Events</title>
- <link>/mita/language/events/</link>
+ <link>/language/events/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/events/</guid>
+ <guid>/language/events/</guid>
<description>System resources and time define events. All events can be handled using the every keyword.
every accelerometer.any_motion { } every 60 seconds { } Time comes in different resolutions:
milliseconds seconds minutes hours Most platforms can only define a limited amount of timers. Therefore the number of time event handlers is limited by that amount. Furthermore, since time is a limited resource, especially on embedded devices, events can be handled multiple times.</description>
@@ -123,10 +123,10 @@ every accelerometer.any_motion { } every 60 seconds { } Time comes in different
<item>
<title>Exceptions</title>
- <link>/mita/language/exceptions/</link>
+ <link>/language/exceptions/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/exceptions/</guid>
+ <guid>/language/exceptions/</guid>
<description>Exceptions Exceptions are special types defined by the exception keyword:
exception FooException; Exceptions can be thrown, which returns control flow to the caller. If the exception is not caught by the caller it propagates further. If the exception is never caught it causes a system reset.
throw FooException; Exceptions can be caught with the familiar try...catch syntax:
@@ -135,19 +135,19 @@ try { throw FooException; } catch(FooException) { println(&amp;#34;Caught FooExc
<item>
<title>Download</title>
- <link>/mita/download/</link>
+ <link>/download/</link>
<pubDate>Tue, 18 Jul 2017 14:18:49 +0200</pubDate>
- <guid>/mita/download/</guid>
+ <guid>/download/</guid>
<description>TBD</description>
</item>
<item>
<title>Concepts</title>
- <link>/mita/concepts/</link>
+ <link>/concepts/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/concepts/</guid>
+ <guid>/concepts/</guid>
<description>Platform TLDR; A platform is the thing you are writing programs for.
Platforms describe the thing that you are writing software for; this thing is literally the piece of hardware and software platform running on it. You do not have create that platform. Platforms consist of something you can configure (configuration items), something you can read from at runtime (modalities), something you can send and receive data through (signals) and something you can react to (events).</description>
</item>
diff --git a/language/arrays/index.html b/language/arrays/index.html
index 31d499f..426d5cf 100644
--- a/language/arrays/index.html
+++ b/language/arrays/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/arrays/">
+ <link rel="canonical" href="../../language/arrays/">
- <meta property="og:url" content="/mita/language/arrays/">
+ <meta property="og:url" content="/language/arrays/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -268,12 +268,15 @@
-<a title="Arrays" href="../../language/arrays/">
+<a class="current" title="Arrays" href="../../language/arrays/">
Arrays
</a>
+<ul id="scrollspy">
+</ul>
+
@@ -397,7 +400,7 @@
<span class="p">}</span>
<span class="k">return</span> <span class="nx">result</span><span class="p">;</span>
<span class="p">}</span></code></pre></div>
-<p>The only exception to that is returning arrays. While we try hard to do <a href="../../mita/concepts/#element-size-inference">element size inference</a>, in some cases we fail to correctly infer the size of your array and inform you about it. In that case you need to manually specify the array length:</p>
+<p>The only exception to that is returning arrays. While we try hard to do <a href="../../concepts/#element-size-inference">element size inference</a>, in some cases we fail to correctly infer the size of your array and inform you about it. In that case you need to manually specify the array length:</p>
<div class="highlight"><pre class="chroma"><code class="language-TypeScript" data-lang="TypeScript"><span class="nx">fn</span> <span class="nx">returnsArray</span><span class="p">()</span><span class="o">:</span> <span class="nx">array</span><span class="o">&lt;</span><span class="nx">int32</span><span class="o">&gt;</span> <span class="p">{</span>
<span class="kd">let</span> <span class="nx">array1</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">array</span><span class="o">&lt;</span><span class="nx">int32</span><span class="o">&gt;</span><span class="p">(</span><span class="nx">size</span> <span class="o">=</span> <span class="mi">10</span><span class="p">);</span>
<span class="k">return</span> <span class="nx">array1</span><span class="p">;</span>
@@ -422,7 +425,7 @@
<h2 id="bounds-checks">Bounds checks</h2>
-<p>Whenever you access parts of an array, be it by direct access or slices, we need to do a bounds check. In many cases this doesn&rsquo;t impart any runtime impact, since we can infer the bounds statically. If we can&rsquo;t, we generate bounds checks and throw an <code>IndexOutOfBoundsException</code> on failure. See <a href="../../mita/language/exceptions/">Exceptions</a> for more info.</p>
+<p>Whenever you access parts of an array, be it by direct access or slices, we need to do a bounds check. In many cases this doesn&rsquo;t impart any runtime impact, since we can infer the bounds statically. If we can&rsquo;t, we generate bounds checks and throw an <code>IndexOutOfBoundsException</code> on failure. See <a href="../../language/exceptions/">Exceptions</a> for more info.</p>
<aside class="copyright" role="note">
@@ -441,7 +444,7 @@
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/language/types/" title="Types">
+ <a href="../../language/types/" title="Types">
<span class="direction">
Previous
</span>
@@ -461,7 +464,7 @@
<div class="next">
- <a href="../../mita/language/functions/" title="Functions">
+ <a href="../../language/functions/" title="Functions">
<span class="direction">
Next
</span>
@@ -505,7 +508,7 @@
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/language/basics/index.html b/language/basics/index.html
index 60bd20f..107de4f 100644
--- a/language/basics/index.html
+++ b/language/basics/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/basics/">
+ <link rel="canonical" href="../../language/basics/">
- <meta property="og:url" content="/mita/language/basics/">
+ <meta property="og:url" content="/language/basics/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -216,12 +216,15 @@
-<a title="Basics" href="../../language/basics/">
+<a class="current" title="Basics" href="../../language/basics/">
Basics
</a>
+<ul id="scrollspy">
+</ul>
+
@@ -519,7 +522,7 @@ By default floating point literals (e.g. <code>1.0</code>) are inferred as singl
<h3 id="complex-types">Complex Types</h3>
-<p>Complex data types (such as strings or structures) need more elaboration than a single section could encompass. Head over to the <a href="../../mita/language/types/">types section</a> to find out more.</p>
+<p>Complex data types (such as strings or structures) need more elaboration than a single section could encompass. Head over to the <a href="../../language/types/">types section</a> to find out more.</p>
<h2 id="control-structures">Control Structures</h2>
@@ -559,7 +562,7 @@ By default floating point literals (e.g. <code>1.0</code>) are inferred as singl
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/language/introduction/" title="Introduction">
+ <a href="../../language/introduction/" title="Introduction">
<span class="direction">
Previous
</span>
@@ -579,7 +582,7 @@ By default floating point literals (e.g. <code>1.0</code>) are inferred as singl
<div class="next">
- <a href="../../mita/language/packages/" title="Packages">
+ <a href="../../language/packages/" title="Packages">
<span class="direction">
Next
</span>
@@ -623,7 +626,7 @@ By default floating point literals (e.g. <code>1.0</code>) are inferred as singl
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/language/events/index.html b/language/events/index.html
index e291ea8..e0610de 100644
--- a/language/events/index.html
+++ b/language/events/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/events/">
+ <link rel="canonical" href="../../language/events/">
- <meta property="og:url" content="/mita/language/events/">
+ <meta property="og:url" content="/language/events/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -307,12 +307,15 @@
-<a title="Events" href="../../language/events/">
+<a class="current" title="Events" href="../../language/events/">
Events
</a>
+<ul id="scrollspy">
+</ul>
+
@@ -411,7 +414,7 @@ Event handlers will be executed in the order they appear in the source code.</p>
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/language/foreignfunctioninterface/" title="Foreign Function Interface">
+ <a href="../../language/foreignfunctioninterface/" title="Foreign Function Interface">
<span class="direction">
Previous
</span>
@@ -431,7 +434,7 @@ Event handlers will be executed in the order they appear in the source code.</p>
<div class="next">
- <a href="../../mita/language/exceptions/" title="Exceptions">
+ <a href="../../language/exceptions/" title="Exceptions">
<span class="direction">
Next
</span>
@@ -475,7 +478,7 @@ Event handlers will be executed in the order they appear in the source code.</p>
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/language/exceptions/index.html b/language/exceptions/index.html
index a84ae72..9210215 100644
--- a/language/exceptions/index.html
+++ b/language/exceptions/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/exceptions/">
+ <link rel="canonical" href="../../language/exceptions/">
- <meta property="og:url" content="/mita/language/exceptions/">
+ <meta property="og:url" content="/language/exceptions/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -320,12 +320,15 @@
-<a title="Exceptions" href="../../language/exceptions/">
+<a class="current" title="Exceptions" href="../../language/exceptions/">
Exceptions
</a>
+<ul id="scrollspy">
+</ul>
+
</ul>
@@ -431,7 +434,7 @@ try {
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/language/events/" title="Events">
+ <a href="../../language/events/" title="Events">
<span class="direction">
Previous
</span>
@@ -451,7 +454,7 @@ try {
<div class="next">
- <a href="../../mita/download/" title="Download">
+ <a href="../../download/" title="Download">
<span class="direction">
Next
</span>
@@ -495,7 +498,7 @@ try {
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/language/foreignfunctioninterface/index.html b/language/foreignfunctioninterface/index.html
index 7431af3..2809a28 100644
--- a/language/foreignfunctioninterface/index.html
+++ b/language/foreignfunctioninterface/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/foreignfunctioninterface/">
+ <link rel="canonical" href="../../language/foreignfunctioninterface/">
- <meta property="og:url" content="/mita/language/foreignfunctioninterface/">
+ <meta property="og:url" content="/language/foreignfunctioninterface/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -294,12 +294,15 @@
-<a title="Foreign Function Interface" href="../../language/foreignfunctioninterface/">
+<a class="current" title="Foreign Function Interface" href="../../language/foreignfunctioninterface/">
Foreign Function Interface
</a>
+<ul id="scrollspy">
+</ul>
+
@@ -441,7 +444,7 @@ The <code>unchecked</code> keyword and its counterpart <code>checked</code> tell
<span class="n">Retcode_T</span> <span class="nf">foobarWithRef</span><span class="p">(</span><span class="n">int32_t</span><span class="o">*</span> <span class="n">result</span><span class="p">,</span> <span class="n">int32_t</span><span class="o">*</span> <span class="n">ref</span><span class="p">);</span>
<span class="n">Retcode_T</span> <span class="nf">foobarVoid</span><span class="p">(</span><span class="kt">void</span><span class="o">*</span> <span class="n">result</span><span class="p">,</span> <span class="n">int32_t</span><span class="o">*</span> <span class="n">ref</span><span class="p">);</span></code></pre></div>
-<p>The <code>Retcode_T</code> and <code>BCDS_*</code> includes are specific to the <a href="../../mita/platforms/xdk110/">XDK110 platform</a>.
+<p>The <code>Retcode_T</code> and <code>BCDS_*</code> includes are specific to the <a href="../../platforms/xdk110/">XDK110 platform</a>.
Other platforms will use a different type to express error codes.</p>
<h2 id="custom-c-file-include">Custom C file include</h2>
@@ -476,7 +479,7 @@ Arrays are a good example: each array type in Mita gets its corresponding C type
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/platforms/xdk110/" title="XDK110">
+ <a href="../../platforms/xdk110/" title="XDK110">
<span class="direction">
Previous
</span>
@@ -496,7 +499,7 @@ Arrays are a good example: each array type in Mita gets its corresponding C type
<div class="next">
- <a href="../../mita/language/events/" title="Events">
+ <a href="../../language/events/" title="Events">
<span class="direction">
Next
</span>
@@ -540,7 +543,7 @@ Arrays are a good example: each array type in Mita gets its corresponding C type
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/language/functions/index.html b/language/functions/index.html
index 1014897..1a92aa5 100644
--- a/language/functions/index.html
+++ b/language/functions/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/functions/">
+ <link rel="canonical" href="../../language/functions/">
- <meta property="og:url" content="/mita/language/functions/">
+ <meta property="og:url" content="/language/functions/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -281,12 +281,15 @@
-<a title="Functions" href="../../language/functions/">
+<a class="current" title="Functions" href="../../language/functions/">
Functions
</a>
+<ul id="scrollspy">
+</ul>
+
@@ -474,7 +477,7 @@ Considering the example above we could write code that looks very object oriente
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/language/arrays/" title="Arrays">
+ <a href="../../language/arrays/" title="Arrays">
<span class="direction">
Previous
</span>
@@ -494,7 +497,7 @@ Considering the example above we could write code that looks very object oriente
<div class="next">
- <a href="../../mita/platforms/xdk110/" title="XDK110">
+ <a href="../../platforms/xdk110/" title="XDK110">
<span class="direction">
Next
</span>
@@ -538,7 +541,7 @@ Considering the example above we could write code that looks very object oriente
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/language/index.xml b/language/index.xml
index decfffb..f6c6b10 100644
--- a/language/index.xml
+++ b/language/index.xml
@@ -2,68 +2,68 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Eclipse Mita</title>
- <link>/mita/language/</link>
+ <link>/language/</link>
<description>Recent content on Eclipse Mita</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
- <atom:link href="/mita/language/index.xml" rel="self" type="application/rss+xml" />
+ <atom:link href="/language/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Introduction</title>
- <link>/mita/language/introduction/</link>
+ <link>/language/introduction/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/introduction/</guid>
+ <guid>/language/introduction/</guid>
<description>Mita is a programming language that is focused on making Internet-Of-Things things easier to program, especially for developers without embedded development background. Its language design and feature-set are meant to make anyone coming from a world of Javascript, Typescript, Java, Swift or Go feel right at home. Compared to C you do not have to care about allocating memory, strings behave naturally, as do arrays. Featuring powerful abstractions and a model-driven system configuration approach we can often tell at compile time if something will not work.</description>
</item>
<item>
<title>Basics</title>
- <link>/mita/language/basics/</link>
+ <link>/language/basics/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/basics/</guid>
+ <guid>/language/basics/</guid>
<description>Variables By default, variables in Mita are immutable, which helps us optimize the generated code. However, you can always choose to make variables mutable if you need it. When a variable is immutable, its value has to be set during declaration and cannot be changed afterwards. The following code snippet illustrates the idea (we&amp;rsquo;ve omitted the package and import statements for brevity):
fn main() { let x = 42; println(`The value of x is ${x}`); x = 64; println(`The value of x is now ${x}`); } When you save this code, you will see an error message Assignment to constant not allowed.</description>
</item>
<item>
<title>Packages</title>
- <link>/mita/language/packages/</link>
+ <link>/language/packages/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/packages/</guid>
+ <guid>/language/packages/</guid>
<description>In Mita code is organized in packages, which serve multiple purposes:
Divide the namespace: Mita programs have one global namespace per .x file. Unlike Java for example, there are no means to qualify the name of an element. Packages are used to keep this namespace clean. Only things which are explicitly imported from other packages are visible in that namespace. See Importing Packages for more details. Group code: packages are a formidable way to group code which conceptually belongs together.</description>
</item>
<item>
<title>System Setup</title>
- <link>/mita/language/setup/</link>
+ <link>/language/setup/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/setup/</guid>
+ <guid>/language/setup/</guid>
<description>System resources have properties which we can configure. For example, an accelerometer has an acceleration range, a filter bandwidth and some power modes which we can change. If we wanted to use Bluetooth for communication we would have to set up the GATT characteristics, device name and advertising interval. If we wanted to connect to a WLAN network, we would have to configure the network name and a preshared key.</description>
</item>
<item>
<title>Types</title>
- <link>/mita/language/types/</link>
+ <link>/language/types/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/types/</guid>
+ <guid>/language/types/</guid>
<description>Primitive Types We have already seen the basic data types supported by Mita. Primitive types are also called scalar types in other languages, as they contain a single value. Complex types on the other hand represent more than a single value, or are defined by the programmer. There is one type where that distinction is not as clear as it may sound: strings.
Strings In C there are no strings, but only arrays of characters and some conventions.</description>
</item>
<item>
<title>Arrays</title>
- <link>/mita/language/arrays/</link>
+ <link>/language/arrays/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/arrays/</guid>
+ <guid>/language/arrays/</guid>
<description>Arrays are a fixed-size sequence of objects. In Mita, arrays can hold any type:
var array1 : array&amp;lt;int32&amp;gt;; struct vec2d { var x : int32; var y : int32; } let array2 : array&amp;lt;vec2d&amp;gt;; Initialization There are multiple ways to initialize and fill arrays:
let array1 : array&amp;lt;int32&amp;gt; = new array&amp;lt;int32&amp;gt;(size = 10); let array2 : array&amp;lt;int32&amp;gt; = [1,2,3,4]; Length Mita arrays know how long arrays are, unlike C arrays.</description>
@@ -71,29 +71,29 @@ let array1 : array&amp;lt;int32&amp;gt; = new array&amp;lt;int32&amp;gt;(size =
<item>
<title>Functions</title>
- <link>/mita/language/functions/</link>
+ <link>/language/functions/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/functions/</guid>
+ <guid>/language/functions/</guid>
<description>Functions play an important role in Mita. They give the language a modern feel through features that go beyond what C has to offer, such as polymorphism and extension methods.
You have already seen the fn keyword, which allows you to declare new functions. Alternatively you can use function instead of fn if that suits your style better. By convention in Mita functions are named in camel case style. In camel case, words are separated by capital letters and for functions we start with a lower-case one.</description>
</item>
<item>
<title>Foreign Function Interface</title>
- <link>/mita/language/foreignfunctioninterface/</link>
+ <link>/language/foreignfunctioninterface/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/foreignfunctioninterface/</guid>
+ <guid>/language/foreignfunctioninterface/</guid>
<description>Mita transpiles to C code, i.e. the compiler produces C code rather than a binary executable. This begs the question if we can call existing C code from within Mita programs. Such integration of the &amp;ldquo;target language&amp;rdquo; is referred to as foreign function interface (or FFI in short) because the functions we wish to call from within Mita are defined in a foreign language: C. Other languages sport similar concepts, for example TypeScript supports declarations which allow you to use code written in JavaScript (the language TypeScript compiles to).</description>
</item>
<item>
<title>Events</title>
- <link>/mita/language/events/</link>
+ <link>/language/events/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/events/</guid>
+ <guid>/language/events/</guid>
<description>System resources and time define events. All events can be handled using the every keyword.
every accelerometer.any_motion { } every 60 seconds { } Time comes in different resolutions:
milliseconds seconds minutes hours Most platforms can only define a limited amount of timers. Therefore the number of time event handlers is limited by that amount. Furthermore, since time is a limited resource, especially on embedded devices, events can be handled multiple times.</description>
@@ -101,10 +101,10 @@ every accelerometer.any_motion { } every 60 seconds { } Time comes in different
<item>
<title>Exceptions</title>
- <link>/mita/language/exceptions/</link>
+ <link>/language/exceptions/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/language/exceptions/</guid>
+ <guid>/language/exceptions/</guid>
<description>Exceptions Exceptions are special types defined by the exception keyword:
exception FooException; Exceptions can be thrown, which returns control flow to the caller. If the exception is not caught by the caller it propagates further. If the exception is never caught it causes a system reset.
throw FooException; Exceptions can be caught with the familiar try...catch syntax:
diff --git a/language/introduction/index.html b/language/introduction/index.html
index 5584a6f..37ad590 100644
--- a/language/introduction/index.html
+++ b/language/introduction/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/introduction/">
+ <link rel="canonical" href="../../language/introduction/">
- <meta property="og:url" content="/mita/language/introduction/">
+ <meta property="og:url" content="/language/introduction/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -203,12 +203,15 @@
-<a title="Introduction" href="../../language/introduction/">
+<a class="current" title="Introduction" href="../../language/introduction/">
Introduction
</a>
+<ul id="scrollspy">
+</ul>
+
@@ -448,7 +451,7 @@ Mita is an event based language which maps nicely to the way such IoT devices wo
<div class="next">
- <a href="../../mita/language/basics/" title="Basics">
+ <a href="../../language/basics/" title="Basics">
<span class="direction">
Next
</span>
@@ -492,7 +495,7 @@ Mita is an event based language which maps nicely to the way such IoT devices wo
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/language/packages/index.html b/language/packages/index.html
index 88b1ae6..4e1eaca 100644
--- a/language/packages/index.html
+++ b/language/packages/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/packages/">
+ <link rel="canonical" href="../../language/packages/">
- <meta property="og:url" content="/mita/language/packages/">
+ <meta property="og:url" content="/language/packages/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -229,12 +229,15 @@
-<a title="Packages" href="../../language/packages/">
+<a class="current" title="Packages" href="../../language/packages/">
Packages
</a>
+<ul id="scrollspy">
+</ul>
+
@@ -467,7 +470,7 @@ The generated C code will respect your export choices and mark non-exported obje
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/language/basics/" title="Basics">
+ <a href="../../language/basics/" title="Basics">
<span class="direction">
Previous
</span>
@@ -487,7 +490,7 @@ The generated C code will respect your export choices and mark non-exported obje
<div class="next">
- <a href="../../mita/language/setup/" title="System Setup">
+ <a href="../../language/setup/" title="System Setup">
<span class="direction">
Next
</span>
@@ -531,7 +534,7 @@ The generated C code will respect your export choices and mark non-exported obje
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/language/setup/index.html b/language/setup/index.html
index 26e3517..c51187a 100644
--- a/language/setup/index.html
+++ b/language/setup/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/setup/">
+ <link rel="canonical" href="../../language/setup/">
- <meta property="og:url" content="/mita/language/setup/">
+ <meta property="og:url" content="/language/setup/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -242,12 +242,15 @@
-<a title="System Setup" href="../../language/setup/">
+<a class="current" title="System Setup" href="../../language/setup/">
System Setup
</a>
+<ul id="scrollspy">
+</ul>
+
@@ -452,7 +455,7 @@ Don&rsquo;t worry about using a &ldquo;wrong value&rdquo; either. Configuration
<h2 id="signal-instances">Signal Instances</h2>
-<p>Mita uses the concept of <a href="../../mita/concepts/">signals and signal instances</a> to model input and output of the device.
+<p>Mita uses the concept of <a href="../../concepts/">signals and signal instances</a> to model input and output of the device.
Each system resource defines which signals it has available, and what attributes those signals have.
To learn which signals you can use, have a look at the platform reference or use auto-complete within the <code>setup</code> block.</p>
<div class="highlight"><pre class="chroma"><code class="language-TypeScript" data-lang="TypeScript"><span class="kr">package</span> <span class="nx">main</span><span class="p">;</span>
@@ -485,7 +488,7 @@ We instantiate this signal and thereby create a BLE GATT characteristic with the
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/language/packages/" title="Packages">
+ <a href="../../language/packages/" title="Packages">
<span class="direction">
Previous
</span>
@@ -505,7 +508,7 @@ We instantiate this signal and thereby create a BLE GATT characteristic with the
<div class="next">
- <a href="../../mita/faq/" title="Frequently Asked Questions">
+ <a href="../../faq/" title="Frequently Asked Questions">
<span class="direction">
Next
</span>
@@ -549,7 +552,7 @@ We instantiate this signal and thereby create a BLE GATT characteristic with the
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/language/types/index.html b/language/types/index.html
index c06f085..75de4e1 100644
--- a/language/types/index.html
+++ b/language/types/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/language/types/">
+ <link rel="canonical" href="../../language/types/">
- <meta property="og:url" content="/mita/language/types/">
+ <meta property="og:url" content="/language/types/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -255,12 +255,15 @@
-<a title="Types" href="../../language/types/">
+<a class="current" title="Types" href="../../language/types/">
Types
</a>
+<ul id="scrollspy">
+</ul>
+
@@ -376,7 +379,7 @@
<h2 id="primitive-types">Primitive Types</h2>
-<p>We have already seen the <a href="../../mita/language/basics/#primitive-data-types">basic data types</a> supported by Mita.
+<p>We have already seen the <a href="../../language/basics/#primitive-data-types">basic data types</a> supported by Mita.
Primitive types are also called <em>scalar types</em> in other languages, as they contain a single value.
Complex types on the other hand represent more than a single value, or are defined by the programmer.
There is one type where that distinction is not as clear as it may sound: strings.</p>
@@ -390,7 +393,7 @@ You as a programmer will have to tell the compiler how much space you would like
<p>This is not how we think of strings nowadays.
In Mita strings are first-class citizens, meaning that they feel like strings on other languages.
You can simply initialize a variable with them, append them, pass them to a function and return them from one.
-Behind the scenes we use <a href="../../mita/concepts/#element-size-inference">element size inference</a> to try and compute the worst-case length of a string at compile time and allocate enough space.</p>
+Behind the scenes we use <a href="../../concepts/#element-size-inference">element size inference</a> to try and compute the worst-case length of a string at compile time and allocate enough space.</p>
<div class="highlight"><pre class="chroma"><code class="language-TypeScript" data-lang="TypeScript"><span class="nx">fn</span> <span class="nx">stringDemo() {</span>
<span class="kd">var</span> <span class="nx">msg</span> <span class="o">=</span> <span class="s2">&#34;Hello &#34;</span><span class="p">;</span>
<span class="nx">msg</span> <span class="o">+=</span> <span class="s2">&#34;World&#34;</span><span class="p">;</span>
@@ -669,7 +672,7 @@ where(state) {
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/faq/" title="Frequently Asked Questions">
+ <a href="../../faq/" title="Frequently Asked Questions">
<span class="direction">
Previous
</span>
@@ -689,7 +692,7 @@ where(state) {
<div class="next">
- <a href="../../mita/language/arrays/" title="Arrays">
+ <a href="../../language/arrays/" title="Arrays">
<span class="direction">
Next
</span>
@@ -733,7 +736,7 @@ where(state) {
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/platforms/index.xml b/platforms/index.xml
index 8896188..f70b35d 100644
--- a/platforms/index.xml
+++ b/platforms/index.xml
@@ -2,20 +2,20 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Platforms on Eclipse Mita</title>
- <link>/mita/platforms/</link>
+ <link>/platforms/</link>
<description>Recent content in Platforms on Eclipse Mita</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
- <atom:link href="/mita/platforms/index.xml" rel="self" type="application/rss+xml" />
+ <atom:link href="/platforms/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>XDK110</title>
- <link>/mita/platforms/xdk110/</link>
+ <link>/platforms/xdk110/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
- <guid>/mita/platforms/xdk110/</guid>
+ <guid>/platforms/xdk110/</guid>
<description>The Bosch Cross Domain Development Kit (XDK) is a programmable sensor device for building IoT applications. It contains a wide range of sensors and means of connectivity, is extensible using its extension bus. Due to its versatility it also serves as reference platform for Mita.
To learn more about the XDK head over to http://xdk.io.
Sensor: environment (BME280) Configuration Items Name Description optional power_mode : BME280_PowerMode Defaults to BME280_PowerMode.</description>
diff --git a/platforms/xdk110/index.html b/platforms/xdk110/index.html
index 27bebfa..3475c68 100644
--- a/platforms/xdk110/index.html
+++ b/platforms/xdk110/index.html
@@ -15,40 +15,40 @@
<meta name="description" content="The documentation of Eclipse Mita.">
- <link rel="canonical" href="../../mita/platforms/xdk110/">
+ <link rel="canonical" href="../../platforms/xdk110/">
- <meta property="og:url" content="/mita/platforms/xdk110/">
+ <meta property="og:url" content="/platforms/xdk110/">
<meta property="og:title" content="Eclipse Mita">
- <meta property="og:image" content="/mita/images/mita.svg">
+ <meta property="og:image" content="/images/mita.svg">
<meta name="apple-mobile-web-app-title" content="Eclipse Mita">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <link rel="shortcut icon" type="image/x-icon" href="../../mita/images/favicon.ico">
- <link rel="icon" type="image/x-icon" href="../../mita/images/favicon.ico">
+ <link rel="shortcut icon" type="image/x-icon" href="../../images/favicon.ico">
+ <link rel="icon" type="image/x-icon" href="../../images/favicon.ico">
<style>
@font-face {
font-family: 'Icon';
- src: url('/mita/fonts/icon.eot');
- src: url('/mita/fonts/icon.eot')
+ src: url('/fonts/icon.eot');
+ src: url('/fonts/icon.eot')
format('embedded-opentype'),
- url('/mita/fonts/icon.woff')
+ url('/fonts/icon.woff')
format('woff'),
- url('/mita/fonts/icon.ttf')
+ url('/fonts/icon.ttf')
format('truetype'),
- url('/mita/fonts/icon.svg')
+ url('/fonts/icon.svg')
format('svg');
font-weight: normal;
font-style: normal;
}
</style>
- <link rel="stylesheet" href="../../mita/stylesheets/application.css">
- <link rel="stylesheet" href="../../mita/stylesheets/temporary.css">
- <link rel="stylesheet" href="../../mita/stylesheets/palettes.css">
- <link rel="stylesheet" href="../../mita/stylesheets/highlight/highlight.css">
+ <link rel="stylesheet" href="../../stylesheets/application.css">
+ <link rel="stylesheet" href="../../stylesheets/temporary.css">
+ <link rel="stylesheet" href="../../stylesheets/palettes.css">
+ <link rel="stylesheet" href="../../stylesheets/highlight/highlight.css">
@@ -64,9 +64,9 @@
</style>
- <link rel="stylesheet" href="../../mita/css/custom.css">
+ <link rel="stylesheet" href="../../css/custom.css">
- <script src="../../mita/javascripts/modernizr.js"></script>
+ <script src="../../javascripts/modernizr.js"></script>
@@ -131,11 +131,11 @@
<main class="main">
<div class="drawer">
<nav aria-label="Navigation">
- <a href="../../mita/" class="project">
+ <a href="../../" class="project">
<div class="banner">
<div class="logo">
- <img src="../../mita/images/mita.svg">
+ <img src="../../images/mita.svg">
</div>
<div class="name">
@@ -344,12 +344,15 @@
-<a title="XDK110" href="../../platforms/xdk110/">
+<a class="current" title="XDK110" href="../../platforms/xdk110/">
XDK110
</a>
+<ul id="scrollspy">
+</ul>
+
</ul>
@@ -1038,7 +1041,7 @@ This MQTT connectivity requires WLAN to be setup as well.</p>
<nav class="pagination" aria-label="Footer">
<div class="previous">
- <a href="../../mita/language/functions/" title="Functions">
+ <a href="../../language/functions/" title="Functions">
<span class="direction">
Previous
</span>
@@ -1058,7 +1061,7 @@ This MQTT connectivity requires WLAN to be setup as well.</p>
<div class="next">
- <a href="../../mita/language/foreignfunctioninterface/" title="Foreign Function Interface">
+ <a href="../../language/foreignfunctioninterface/" title="Foreign Function Interface">
<span class="direction">
Next
</span>
@@ -1102,7 +1105,7 @@ This MQTT connectivity requires WLAN to be setup as well.</p>
</script>
- <script src="../../mita/javascripts/application.js"></script>
+ <script src="../../javascripts/application.js"></script>
<script>
diff --git a/sitemap.xml b/sitemap.xml
index 2d47a87..5ae6bcf 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -3,82 +3,82 @@
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
- <loc>/mita/language/introduction/</loc>
+ <loc>/language/introduction/</loc>
</url>
<url>
- <loc>/mita/language/basics/</loc>
+ <loc>/language/basics/</loc>
</url>
<url>
- <loc>/mita/language/packages/</loc>
+ <loc>/language/packages/</loc>
</url>
<url>
- <loc>/mita/language/setup/</loc>
+ <loc>/language/setup/</loc>
</url>
<url>
- <loc>/mita/faq/</loc>
+ <loc>/faq/</loc>
</url>
<url>
- <loc>/mita/language/types/</loc>
+ <loc>/language/types/</loc>
</url>
<url>
- <loc>/mita/language/arrays/</loc>
+ <loc>/language/arrays/</loc>
</url>
<url>
- <loc>/mita/language/functions/</loc>
+ <loc>/language/functions/</loc>
</url>
<url>
- <loc>/mita/platforms/</loc>
+ <loc>/platforms/</loc>
</url>
<url>
- <loc>/mita/platforms/xdk110/</loc>
+ <loc>/platforms/xdk110/</loc>
</url>
<url>
- <loc>/mita/language/foreignfunctioninterface/</loc>
+ <loc>/language/foreignfunctioninterface/</loc>
</url>
<url>
- <loc>/mita/language/events/</loc>
+ <loc>/language/events/</loc>
</url>
<url>
- <loc>/mita/language/exceptions/</loc>
+ <loc>/language/exceptions/</loc>
</url>
<url>
- <loc>/mita/download/</loc>
+ <loc>/download/</loc>
<lastmod>2017-07-18T14:18:49+02:00</lastmod>
</url>
<url>
- <loc>/mita/language/</loc>
+ <loc>/language/</loc>
</url>
<url>
- <loc>/mita/categories/</loc>
+ <loc>/categories/</loc>
<priority>0</priority>
</url>
<url>
- <loc>/mita/concepts/</loc>
+ <loc>/concepts/</loc>
</url>
<url>
- <loc>/mita/</loc>
+ <loc>/</loc>
<lastmod>2017-07-18T14:18:49+02:00</lastmod>
</url>
<url>
- <loc>/mita/tags/</loc>
+ <loc>/tags/</loc>
<priority>0</priority>
</url>
diff --git a/tags/index.xml b/tags/index.xml
index 68d7417..2f40bcd 100644
--- a/tags/index.xml
+++ b/tags/index.xml
@@ -2,12 +2,12 @@
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tags on Eclipse Mita</title>
- <link>/mita/tags/</link>
+ <link>/tags/</link>
<description>Recent content in Tags on Eclipse Mita</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-us</language>
- <atom:link href="/mita/tags/index.xml" rel="self" type="application/rss+xml" />
+ <atom:link href="/tags/index.xml" rel="self" type="application/rss+xml" />
</channel>

Back to the top