]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.runtime/src-isv/GettingStarted.mediawiki
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.scl.runtime / src-isv / GettingStarted.mediawiki
index 8b072f04ddda79f34fc7aee764f4f7db9f804d41..801c4c8785825512b1c4ed3728296055a14fd0bd 100644 (file)
@@ -1,49 +1,49 @@
-[[Category: Simantics Constraint Language]]\r
-== Getting started ==\r
-\r
-The easiest way of getting started with SCL is to use SCL console that is included in almost all Simantics-based products. You can open the console by pressing ALT-SHIFT-q and then q and choosing "SCL Console" from the list of views.\r
-\r
-SCL console works by executing commands you write into the input box in the bottom of the view. After the command has been written, it can be executed by pressing ENTER. However, this works only if the command contains no syntactic errors. Possible errors are highlighted in the input box and a description of the error is shown when you move mouse on top of the highlighted text.\r
-\r
-Multiline commands can be written by pressing CTRL-ENTER (or just ENTER when the current command text contains errors). The command history can be browsed with CTRL-UP and CTRL-DOWN.\r
-\r
-If the command you write into console results as an ordinary value, it is just printed to the console. Here are couple of examples you can try:\r
-<pre>\r
-> 13\r
-13\r
-> 1+2\r
-3\r
-> sin 1\r
-0.8414709848078965\r
-> "Hello " + "world!"\r
-Hello world!\r
-> [1,3,5]\r
-[1, 3, 5]\r
-</pre>\r
-\r
-You can also declare local variables to be used in the commands:\r
-<pre>\r
-> x = 35\r
-> y = 40\r
-> x + y\r
-75\r
-> x * y\r
-1400\r
-</pre>\r
-\r
-Also new functions can be defined:\r
-<pre>\r
-> f x = x * x\r
-> f 123\r
-15129\r
-</pre>\r
-\r
-If you write a command that has side-effects, it is executed in the console:\r
-<pre>\r
-> print "Hello" ; print "world!"\r
-Hello\r
-world!\r
-</pre>\r
-\r
-SCL is a dialect of Haskell and tutorials written for Haskell can be used for learning the details of the language. The main differences between the languages are the strict evaluation strategy used in SCL and somewhat different standard library. Some Haskell tutorials can be found at [http://www.haskell.org/haskellwiki/Learning_Haskell http://www.haskell.org/haskellwiki/Learning_Haskell].\r
-\r
+[[Category: Simantics Constraint Language]]
+== Getting started ==
+
+The easiest way of getting started with SCL is to use SCL console that is included in almost all Simantics-based products. You can open the console by pressing ALT-SHIFT-q and then q and choosing "SCL Console" from the list of views.
+
+SCL console works by executing commands you write into the input box in the bottom of the view. After the command has been written, it can be executed by pressing ENTER. However, this works only if the command contains no syntactic errors. Possible errors are highlighted in the input box and a description of the error is shown when you move mouse on top of the highlighted text.
+
+Multiline commands can be written by pressing CTRL-ENTER (or just ENTER when the current command text contains errors). The command history can be browsed with CTRL-UP and CTRL-DOWN.
+
+If the command you write into console results as an ordinary value, it is just printed to the console. Here are couple of examples you can try:
+<pre>
+> 13
+13
+> 1+2
+3
+> sin 1
+0.8414709848078965
+> "Hello " + "world!"
+Hello world!
+> [1,3,5]
+[1, 3, 5]
+</pre>
+
+You can also declare local variables to be used in the commands:
+<pre>
+> x = 35
+> y = 40
+> x + y
+75
+> x * y
+1400
+</pre>
+
+Also new functions can be defined:
+<pre>
+> f x = x * x
+> f 123
+15129
+</pre>
+
+If you write a command that has side-effects, it is executed in the console:
+<pre>
+> print "Hello" ; print "world!"
+Hello
+world!
+</pre>
+
+SCL is a dialect of Haskell and tutorials written for Haskell can be used for learning the details of the language. The main differences between the languages are the strict evaluation strategy used in SCL and somewhat different standard library. Some Haskell tutorials can be found at [http://www.haskell.org/haskellwiki/Learning_Haskell http://www.haskell.org/haskellwiki/Learning_Haskell].
+