summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--data/01_comments.c (renamed from data/comments.c)5
-rw-r--r--data/02_classes.c42
3 files changed, 45 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index db01b94..7a2f3c3 100644
--- a/Makefile
+++ b/Makefile
@@ -32,8 +32,8 @@ eo_tokenizer.png: eo_tokenizer.dot
eo_tokenizer: main.c eo_tokenizer.c eo_tokenizer.h
-test-comments: eo_tokenizer
- $(LOG) ./eo_tokenizer ./data/comments.c
+test: eo_tokenizer
+ $(LOG) ./eo_tokenizer ./data/*.c
clean:
rm -f *~ *.o *.dot *.png *.xml $(BIN).c $(BIN)
diff --git a/data/comments.c b/data/01_comments.c
index 5fd0216..67eaa90 100644
--- a/data/comments.c
+++ b/data/01_comments.c
@@ -14,7 +14,4 @@ comment:11-15
*
* *//*comment 15-16
*/
-
- Evas_object {
- inherits { Eo_Base, Evas_Common_Interface }
-}
+FAIL NOW !
diff --git a/data/02_classes.c b/data/02_classes.c
new file mode 100644
index 0000000..73461f9
--- /dev/null
+++ b/data/02_classes.c
@@ -0,0 +1,42 @@
+
+/*
+ * this is my sandbox
+ */
+
+
+ A_class_B {
+ /* leave
+ * a
+ * comment
+ * here
+ */
+ inherits {}
+ inherits { Eo_Base }
+ inherits { Eo_Another, Evas_Common_Interface }
+}
+
+C_class_D {
+
+ // haha
+ inherits { Eo_Another, Evas_Common_Interface }
+ // hoho
+}
+
+ Cvas_objecD
+{
+
+ /* blah */
+ //
+ /*
+ * bloh
+ */
+}
+
+E_class_F
+ {
+ /* */
+ inherits {}
+
+ }
+
+FAIL NOW !