summaryrefslogtreecommitdiffstats
path: root/eo_tokenizer.rl
diff options
context:
space:
mode:
Diffstat (limited to 'eo_tokenizer.rl')
-rw-r--r--eo_tokenizer.rl22
1 files changed, 17 insertions, 5 deletions
diff --git a/eo_tokenizer.rl b/eo_tokenizer.rl
index bd740b2..1f98b89 100644
--- a/eo_tokenizer.rl
+++ b/eo_tokenizer.rl
@@ -13,7 +13,10 @@ _eo_tokenizer_abort(Eo_Tokenizer *toknz,
eina_log_vprint(_eo_tokenizer_log_dom, EINA_LOG_LEVEL_ERR,
file, fct, line, fmt, ap);
va_end(ap);
- eo_tokenizer_dump(toknz);
+ fprintf(stderr, " toknz[%d] n:%d l:%d p:%d pe:%d ts:%d te:%d act:%d\n",
+ toknz->cs, toknz->current_nesting, toknz->current_line,
+ (toknz->p - toknz->buf), (toknz->pe - toknz->buf),
+ toknz->ts, toknz->te, toknz->act);
exit(EXIT_FAILURE);
}
#define ABORT(toknz, ...) \
@@ -274,10 +277,19 @@ eo_tokenizer_get(void)
void
eo_tokenizer_dump(Eo_Tokenizer *toknz)
{
- fprintf(stderr, " toknz[%d] n:%d l:%d p:%d pe:%d ts:%d te:%d act:%d\n",
- toknz->cs, toknz->current_nesting, toknz->current_line,
- (toknz->p - toknz->buf), (toknz->pe - toknz->buf),
- toknz->ts, toknz->te, toknz->act);
+ const char *s;
+ Eina_List *k, *l;
+ Eo_Class_Def *kls;
+
+ EINA_LIST_FOREACH(toknz->classes, k, kls)
+ {
+ printf("Class: %s\n", kls->name);
+ printf(" inherits from :");
+ EINA_LIST_FOREACH(kls->inherits, l, s)
+ printf(" %s", s);
+ printf("\n");
+ }
+
}
void