forked from MartinThoma/LaTeX-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2a58ef9
commit 25732f4
Showing
8 changed files
with
91 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,10 +24,6 @@ \section*{Anregungen, Verbesserungsvorschläge, Ergänzungen} | |
Pull-Request gemacht werden oder mir per Email an [email protected] | ||
geschickt werden. | ||
|
||
\section*{Was ist Programmierparadigmen?} | ||
|
||
TODO | ||
|
||
\section*{Erforderliche Vorkenntnisse} | ||
Grundlegende Kenntnisse vom Programmieren, insbesondere mit Java, | ||
wie sie am KIT in \enquote{Programmieren} vermittelt werden, werden | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,22 @@ | ||
\chapter{X10} | ||
\index{X10|(} | ||
%!TEX root = Programmierparadigmen.tex | ||
\chapter{X10}\index{X10|(}% | ||
X10 ist eine objektorientierte Programmiersprache, die 2004 bei IBM entwickelt | ||
wurde. | ||
|
||
\section{Erste Schritte} | ||
Als erstes sollte man x10 von \url{http://x10-lang.org/x10-development/building-x10-from-source.html?id=248} herunterladen. | ||
|
||
Dann kann man die bin/x10c++ zum erstellen von ausführbaren Dateien nutzen. | ||
Der Befehl \texttt{x10c++ hello-world.x10} erstellt eine ausführbare Datei namens | ||
\texttt{a.out}. | ||
|
||
\inputminted[numbersep=5pt, tabsize=4, frame=lines, label=hello-world.x10]{cpp}{scripts/x10/hello-world.x10} | ||
|
||
\section{Syntax} | ||
\section{Beispiele} | ||
|
||
\index{X10|)} | ||
|
||
\section{Weitere Informationen} | ||
\begin{itemize} | ||
\item \url{http://x10-lang.org/} | ||
\end{itemize} | ||
\index{X10|)} |
15 changes: 15 additions & 0 deletions
15
documents/Programmierparadigmen/scripts/x10/hello-whole-world.x10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import x10.io.Console; | ||
|
||
class HelloWholeWorld { | ||
public static def main(args:Rail[String]):void { | ||
if (args.size < 1) { | ||
Console.OUT.println("Usage: HelloWholeWorld message"); | ||
return; | ||
} | ||
|
||
finish for (p in Place.places()) { | ||
at (p) async Console.OUT.println(here+" says hello and "+args(0)); | ||
} | ||
Console.OUT.println("Goodbye"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// file HelloWorld.x10 | ||
public class HelloWorld { | ||
public static def main(args: Array[String](1)){ | ||
x10.io.Console.OUT.println("Hello, World"); | ||
} | ||
} |