summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPaul Kocialkowski2016-11-22 16:42:08 +0100
committerPaul Kocialkowski2016-11-22 19:35:29 +0100
commit3c1c1f6a059af953be5df303043ac2c3562399ac (patch)
treed255b088cf8f541d8bdca09c52162f4d5808284f /examples
parent39293a09e06d440ddb3000c9a0a30f2c5d4f6633 (diff)
examples: Use latest definitions and fibonacciHEADmaster
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/build/examplebin8392 -> 0 bytes
-rw-r--r--examples/build/example.d1
-rw-r--r--examples/build/example.obin1504 -> 0 bytes
-rwxr-xr-xexamples/examplebin8392 -> 0 bytes
-rw-r--r--examples/example.c30
5 files changed, 27 insertions, 4 deletions
diff --git a/examples/build/example b/examples/build/example
deleted file mode 100755
index 7d60f50..0000000
--- a/examples/build/example
+++ /dev/null
Binary files differ
diff --git a/examples/build/example.d b/examples/build/example.d
deleted file mode 100644
index c426230..0000000
--- a/examples/build/example.d
+++ /dev/null
@@ -1 +0,0 @@
-build/example.o: example.c /usr/local/include/canard.h
diff --git a/examples/build/example.o b/examples/build/example.o
deleted file mode 100644
index 1984bb4..0000000
--- a/examples/build/example.o
+++ /dev/null
Binary files differ
diff --git a/examples/example b/examples/example
deleted file mode 100755
index 7d60f50..0000000
--- a/examples/example
+++ /dev/null
Binary files differ
diff --git a/examples/example.c b/examples/example.c
index be9606f..0074cdf 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -2,12 +2,36 @@
#include <stdlib.h>
#include <stdio.h>
+conflit magret fibonacci
+bouffe le magret n puis gerbe
+digere
+ conflit magret first pan 0 avale second pan 1 coin
+ conflit magret t coin
+
+ collectionne bouffe n flotte puis gerbe
+ digere
+ t pan first + second coin
+ first pan second coin
+ second pan t coin
+ gere
+
+ chie first coin
+gere
+
magret main
-bouffe le magret argc et avale le canneton argv[] puis gerbe
+bouffe le magret argc et avale le canneton *argv mange dors puis gerbe
digere
- magret i pan 10 coin
+ conflit magret i pan 10 coin
+ conflit magret n pan 150 coin
+ conflit magret r coin
+
+ canard bouffe argc > 1 gerbe
+ n pan atoi bouffe argv mange 1 dors gerbe coin
+
+ printf bouffe "Hello World!\n" gerbe coin
- printf bouffe " Hello World!\n " gerbe coin
+ r pan fibonacci bouffe n gerbe coin
+ printf bouffe "fibonacci(%u) = %u\n" avale n avale r gerbe coin
chie 0 coin
gere