aboutsummaryrefslogtreecommitdiff
path: root/examples/hello-world
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-05-25 22:56:28 +0100
committerMichael Williamson <mike@zwobble.org>2016-05-25 22:56:28 +0100
commit6902fb4b752641f953b7701d67550f2de04912e9 (patch)
tree6ecd877d92b89149d1b83b39ad9b6e58efc48510 /examples/hello-world
parent9e8bf0001082d7836b7a672373e2800f26bbece4 (diff)
Add Hello world example for Java to C#
Diffstat (limited to 'examples/hello-world')
-rw-r--r--examples/hello-world/couscous.json11
-rw-r--r--examples/hello-world/src/main/java/com/example/Example.java7
2 files changed, 18 insertions, 0 deletions
diff --git a/examples/hello-world/couscous.json b/examples/hello-world/couscous.json
new file mode 100644
index 0000000..e6f27a9
--- /dev/null
+++ b/examples/hello-world/couscous.json
@@ -0,0 +1,11 @@
+{
+ "backend": "csharp",
+ "sourcepath": [
+ "src/main/java"
+ ],
+ "files": [
+ "src/main/java"
+ ],
+ "output": "dotnet/generated.cs",
+ "namespace": "Example"
+}
diff --git a/examples/hello-world/src/main/java/com/example/Example.java b/examples/hello-world/src/main/java/com/example/Example.java
new file mode 100644
index 0000000..3fb932f
--- /dev/null
+++ b/examples/hello-world/src/main/java/com/example/Example.java
@@ -0,0 +1,7 @@
+package com.example;
+
+public class Example {
+ public static void main() {
+ System.out.println("Hello world");
+ }
+}