From 2a2565431c0c13d651d574326b7e9f676dd2896b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 25 Nov 2013 11:42:10 +0100 Subject: update test data --- Makefile | 4 ++-- data/01_comments.c | 17 +++++++++++++++++ data/02_classes.c | 42 ++++++++++++++++++++++++++++++++++++++++++ data/comments.c | 20 -------------------- 4 files changed, 61 insertions(+), 22 deletions(-) create mode 100644 data/01_comments.c create mode 100644 data/02_classes.c delete mode 100644 data/comments.c 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/01_comments.c b/data/01_comments.c new file mode 100644 index 0000000..67eaa90 --- /dev/null +++ b/data/01_comments.c @@ -0,0 +1,17 @@ +/* comment:1-1 */ + +/* + comment:3-4 */ +/* + * comment:5-7 + */ + +// comment:9-9 + + /* +comment:11-15 + * + * + * *//*comment 15-16 +*/ +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 ! diff --git a/data/comments.c b/data/comments.c deleted file mode 100644 index 5fd0216..0000000 --- a/data/comments.c +++ /dev/null @@ -1,20 +0,0 @@ -/* comment:1-1 */ - -/* - comment:3-4 */ -/* - * comment:5-7 - */ - -// comment:9-9 - - /* -comment:11-15 - * - * - * *//*comment 15-16 -*/ - - Evas_object { - inherits { Eo_Base, Evas_Common_Interface } -} -- cgit v1.1-2-g2b99