#endif
#define WRN(...) EINA_LOG_DOM_WARN(_eo_tokenizer_log_dom, __VA_ARGS__)
+#define INF_ENABLED EINA_FALSE
#ifdef INF
#undef INF
#endif
-#define INF(...) EINA_LOG_DOM_INFO(_eo_tokenizer_log_dom, __VA_ARGS__)
+#define INF(...) if (INF_ENABLED) EINA_LOG_DOM_INFO(_eo_tokenizer_log_dom, __VA_ARGS__)
+#define DBG_ENABLED EINA_FALSE
#ifdef DBG
#undef DBG
#endif
-#define DBG(...) EINA_LOG_DOM_DBG(_eo_tokenizer_log_dom, __VA_ARGS__)
+#define DBG(...) if (DBG_ENABLED) EINA_LOG_DOM_DBG(_eo_tokenizer_log_dom, __VA_ARGS__)
#define FUNC_PUBLIC 0
#define FUNC_PROTECTED 1
}
-#line 453 "lib/eolian/eo_lexer.rl"
+#line 455 "lib/eolian/eo_lexer.rl"
-#line 384 "lib/eolian/eo_lexer.c"
+#line 386 "lib/eolian/eo_lexer.c"
static const char _eo_tokenizer_actions[] = {
0, 1, 0, 1, 2, 1, 6, 1,
10, 1, 15, 1, 16, 1, 17, 1,
static const int eo_tokenizer_en_main = 296;
-#line 1055 "lib/eolian/eo_lexer.rl"
+#line 1053 "lib/eolian/eo_lexer.rl"
Eina_Bool
}
-#line 1337 "lib/eolian/eo_lexer.c"
+#line 1339 "lib/eolian/eo_lexer.c"
{
toknz->cs = eo_tokenizer_start;
toknz->ts = 0;
toknz->act = 0;
}
-#line 1078 "lib/eolian/eo_lexer.rl"
+#line 1076 "lib/eolian/eo_lexer.rl"
while (!done)
{
}
-#line 1372 "lib/eolian/eo_lexer.c"
+#line 1374 "lib/eolian/eo_lexer.c"
{
int _klen;
unsigned int _trans;
#line 1 "NONE"
{ toknz->ts = ( toknz->p);}
break;
-#line 1391 "lib/eolian/eo_lexer.c"
+#line 1393 "lib/eolian/eo_lexer.c"
}
}
switch ( *_acts++ )
{
case 0:
-#line 384 "lib/eolian/eo_lexer.rl"
+#line 386 "lib/eolian/eo_lexer.rl"
{
toknz->current_line += 1;
DBG("inc[%d] %d", toknz->cs, toknz->current_line);
}
break;
case 1:
-#line 389 "lib/eolian/eo_lexer.rl"
+#line 391 "lib/eolian/eo_lexer.rl"
{
toknz->saved.line = toknz->current_line;
DBG("save line[%d] %d", toknz->cs, toknz->current_line);
}
break;
case 2:
-#line 394 "lib/eolian/eo_lexer.rl"
+#line 396 "lib/eolian/eo_lexer.rl"
{
toknz->saved.tok = ( toknz->p);
DBG("save token[%d] %p %c", toknz->cs, ( toknz->p), *( toknz->p));
}
break;
case 3:
-#line 471 "lib/eolian/eo_lexer.rl"
+#line 473 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.accessor) ABORT(toknz, "No accessor!!!");
if (toknz->tmp.accessor->ret != NULL)
}
break;
case 4:
-#line 478 "lib/eolian/eo_lexer.rl"
+#line 480 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.accessor) ABORT(toknz, "No accessor!!!");
if (!toknz->tmp.accessor->ret) ABORT(toknz, "No ret!!!");
}
break;
case 5:
-#line 487 "lib/eolian/eo_lexer.rl"
+#line 489 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.accessor) ABORT(toknz, "No accessor!!!");
toknz->tmp.accessor->legacy = _eo_tokenizer_token_get(toknz, ( toknz->p));
}
break;
case 6:
-#line 501 "lib/eolian/eo_lexer.rl"
+#line 503 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.accessor_param = _eo_tokenizer_accessor_param_get(toknz, ( toknz->p));
}
break;
case 7:
-#line 505 "lib/eolian/eo_lexer.rl"
+#line 507 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.accessor_param)
ABORT(toknz, "No accessor param!!!");
}
break;
case 8:
-#line 534 "lib/eolian/eo_lexer.rl"
+#line 536 "lib/eolian/eo_lexer.rl"
{
const char *c = _eo_tokenizer_token_get(toknz, ( toknz->p)-2);
if (toknz->tmp.param == NULL)
}
break;
case 9:
-#line 542 "lib/eolian/eo_lexer.rl"
+#line 544 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.param = _eo_tokenizer_param_get(toknz, ( toknz->p));
if (toknz->tmp.params)
}
break;
case 15:
-#line 765 "lib/eolian/eo_lexer.rl"
+#line 763 "lib/eolian/eo_lexer.rl"
{
if (toknz->tmp.meth != NULL)
ABORT(toknz, "there is a pending method definition %s", toknz->tmp.meth->name);
}
break;
case 16:
-#line 797 "lib/eolian/eo_lexer.rl"
+#line 795 "lib/eolian/eo_lexer.rl"
{
const char *base = _eo_tokenizer_token_get(toknz, ( toknz->p));
toknz->tmp.str_items = eina_list_append(toknz->tmp.str_items, base);
}
break;
case 17:
-#line 802 "lib/eolian/eo_lexer.rl"
+#line 800 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
toknz->tmp.kls->inherits = toknz->tmp.str_items;
}
break;
case 18:
-#line 850 "lib/eolian/eo_lexer.rl"
+#line 848 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
toknz->tmp.event = _eo_tokenizer_event_get(toknz, ( toknz->p));
}
break;
case 19:
-#line 856 "lib/eolian/eo_lexer.rl"
+#line 854 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.event) ABORT(toknz, "No event!!!");
if (toknz->tmp.event->type != NULL)
}
break;
case 20:
-#line 863 "lib/eolian/eo_lexer.rl"
+#line 861 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.event) ABORT(toknz, "No event!!!");
if (toknz->tmp.event->comment != NULL)
}
break;
case 21:
-#line 871 "lib/eolian/eo_lexer.rl"
+#line 869 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
if (toknz->tmp.kls->legacy_prefix != NULL)
}
break;
case 22:
-#line 880 "lib/eolian/eo_lexer.rl"
+#line 878 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
if (toknz->tmp.kls->eo_prefix != NULL)
}
break;
case 23:
-#line 889 "lib/eolian/eo_lexer.rl"
+#line 887 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
if (toknz->tmp.kls->data_type != NULL)
}
break;
case 24:
-#line 902 "lib/eolian/eo_lexer.rl"
+#line 900 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
toknz->tmp.impl = _eo_tokenizer_implement_get(toknz, ( toknz->p));
}
break;
case 25:
-#line 908 "lib/eolian/eo_lexer.rl"
+#line 906 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
if (toknz->tmp.impl->legacy)
}
break;
case 26:
-#line 915 "lib/eolian/eo_lexer.rl"
+#line 913 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
if (!toknz->tmp.impl->legacy)
}
break;
case 27:
-#line 922 "lib/eolian/eo_lexer.rl"
+#line 920 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
toknz->tmp.impl_leg_param = calloc(1, sizeof(Eo_Implement_Legacy_Param_Def));
}
break;
case 28:
-#line 931 "lib/eolian/eo_lexer.rl"
+#line 929 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl_leg_param)
ABORT(toknz, "No implement legacy param!!!");
}
break;
case 29:
-#line 937 "lib/eolian/eo_lexer.rl"
+#line 935 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl_leg_param)
ABORT(toknz, "No implement legacy param!!!");
}
break;
case 30:
-#line 943 "lib/eolian/eo_lexer.rl"
+#line 941 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
if (!toknz->tmp.impl->legacy)
}
break;
case 31:
-#line 950 "lib/eolian/eo_lexer.rl"
+#line 948 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
if (!toknz->tmp.impl->legacy)
}
break;
case 32:
-#line 1021 "lib/eolian/eo_lexer.rl"
+#line 1019 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.kls_type = EOLIAN_CLASS_REGULAR;
}
break;
case 33:
-#line 1024 "lib/eolian/eo_lexer.rl"
+#line 1022 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.kls_type = EOLIAN_CLASS_ABSTRACT;
}
break;
case 34:
-#line 1027 "lib/eolian/eo_lexer.rl"
+#line 1025 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.kls_type = EOLIAN_CLASS_MIXIN;
}
break;
case 35:
-#line 1030 "lib/eolian/eo_lexer.rl"
+#line 1028 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.kls_type = EOLIAN_CLASS_INTERFACE;
}
break;
case 36:
-#line 1034 "lib/eolian/eo_lexer.rl"
+#line 1032 "lib/eolian/eo_lexer.rl"
{
if (toknz->tmp.kls != NULL)
ABORT(toknz, "there is a pending class definition %s", toknz->tmp.kls->name);
{ toknz->te = ( toknz->p)+1;}
break;
case 40:
-#line 463 "lib/eolian/eo_lexer.rl"
+#line 465 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.accessor) ABORT(toknz, "No accessor!!!");
if (toknz->tmp.accessor->comment != NULL)
}}
break;
case 41:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 42:
-#line 526 "lib/eolian/eo_lexer.rl"
+#line 528 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;}
break;
case 43:
-#line 527 "lib/eolian/eo_lexer.rl"
+#line 529 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;}
break;
case 44:
-#line 492 "lib/eolian/eo_lexer.rl"
+#line 494 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" }");
if (!toknz->tmp.prop) ABORT(toknz, "No prop!!!");
}}
break;
case 45:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 46:
-#line 522 "lib/eolian/eo_lexer.rl"
+#line 524 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 47:
-#line 525 "lib/eolian/eo_lexer.rl"
+#line 527 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 48:
-#line 492 "lib/eolian/eo_lexer.rl"
+#line 494 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
INF(" }");
if (!toknz->tmp.prop) ABORT(toknz, "No prop!!!");
}}
break;
case 49:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 50:
-#line 525 "lib/eolian/eo_lexer.rl"
+#line 527 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}}
break;
case 51:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 52:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 53:
-#line 551 "lib/eolian/eo_lexer.rl"
+#line 553 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" }");
toknz->tmp.param = NULL;
}}
break;
case 54:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 55:
-#line 567 "lib/eolian/eo_lexer.rl"
+#line 569 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 56:
-#line 569 "lib/eolian/eo_lexer.rl"
+#line 571 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 57:
-#line 551 "lib/eolian/eo_lexer.rl"
+#line 553 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
INF(" }");
toknz->tmp.param = NULL;
}}
break;
case 58:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 59:
-#line 569 "lib/eolian/eo_lexer.rl"
+#line 571 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}}
break;
case 60:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 61:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 62:
-#line 576 "lib/eolian/eo_lexer.rl"
+#line 578 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" get {");
toknz->tmp.accessor = _eo_tokenizer_accessor_get(toknz, GETTER);
}}
break;
case 63:
-#line 583 "lib/eolian/eo_lexer.rl"
+#line 585 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" set {");
toknz->tmp.accessor = _eo_tokenizer_accessor_get(toknz, SETTER);
}}
break;
case 64:
-#line 590 "lib/eolian/eo_lexer.rl"
+#line 592 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" keys {");
toknz->current_nesting++;
}}
break;
case 65:
-#line 597 "lib/eolian/eo_lexer.rl"
+#line 599 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" values {");
toknz->current_nesting++;
}}
break;
case 66:
-#line 604 "lib/eolian/eo_lexer.rl"
+#line 606 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.prop) ABORT(toknz, "No property!!!");
- if (eina_list_count(toknz->tmp.prop->values) == 0)
- WRN("property '%s' has no values.", toknz->tmp.prop->name);
if (eina_list_count(toknz->tmp.prop->accessors) == 0)
WRN("property '%s' has no accessors.", toknz->tmp.prop->name);
INF(" }");
}}
break;
case 67:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 69:
-#line 604 "lib/eolian/eo_lexer.rl"
+#line 606 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
if (!toknz->tmp.prop) ABORT(toknz, "No property!!!");
- if (eina_list_count(toknz->tmp.prop->values) == 0)
- WRN("property '%s' has no values.", toknz->tmp.prop->name);
if (eina_list_count(toknz->tmp.prop->accessors) == 0)
WRN("property '%s' has no accessors.", toknz->tmp.prop->name);
INF(" }");
}}
break;
case 70:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 71:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 72:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 75:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 78:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 79:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 81:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 83:
-#line 750 "lib/eolian/eo_lexer.rl"
+#line 748 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;}
break;
case 84:
-#line 751 "lib/eolian/eo_lexer.rl"
+#line 749 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;}
break;
case 85:
{ toknz->te = ( toknz->p)+1;{
Eina_List **l = NULL;
if (!toknz->tmp.meth) ABORT(toknz, "No method!!!");
- if (eina_list_count(toknz->tmp.meth->params) == 0)
- WRN("method '%s' has no parameters.", toknz->tmp.meth->name);
INF(" }");
switch (toknz->current_methods_type) {
case METH_CONSTRUCTOR:
}}
break;
case 86:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 87:
-#line 745 "lib/eolian/eo_lexer.rl"
+#line 743 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 88:
-#line 749 "lib/eolian/eo_lexer.rl"
+#line 747 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 89:
{ toknz->te = ( toknz->p);( toknz->p)--;{
Eina_List **l = NULL;
if (!toknz->tmp.meth) ABORT(toknz, "No method!!!");
- if (eina_list_count(toknz->tmp.meth->params) == 0)
- WRN("method '%s' has no parameters.", toknz->tmp.meth->name);
INF(" }");
switch (toknz->current_methods_type) {
case METH_CONSTRUCTOR:
}}
break;
case 90:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 91:
-#line 749 "lib/eolian/eo_lexer.rl"
+#line 747 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}}
break;
case 92:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 93:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 94:
-#line 758 "lib/eolian/eo_lexer.rl"
+#line 756 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.meth) ABORT(toknz, "No method!!!");
INF(" %s {", toknz->tmp.meth->name);
}}
break;
case 95:
-#line 771 "lib/eolian/eo_lexer.rl"
+#line 769 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" }");
toknz->current_methods_type = METH_TYPE_LAST;
}}
break;
case 96:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 97:
-#line 781 "lib/eolian/eo_lexer.rl"
+#line 779 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 98:
-#line 771 "lib/eolian/eo_lexer.rl"
+#line 769 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
INF(" }");
toknz->current_methods_type = METH_TYPE_LAST;
}}
break;
case 99:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 100:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 101:
-#line 790 "lib/eolian/eo_lexer.rl"
+#line 788 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
if (toknz->tmp.kls->comment != NULL)
}}
break;
case 102:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 103:
-#line 808 "lib/eolian/eo_lexer.rl"
+#line 806 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
}}
break;
case 104:
-#line 811 "lib/eolian/eo_lexer.rl"
+#line 809 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
}}
break;
case 105:
-#line 814 "lib/eolian/eo_lexer.rl"
+#line 812 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" constructors {");
toknz->current_methods_type = METH_CONSTRUCTOR;
}}
break;
case 106:
-#line 821 "lib/eolian/eo_lexer.rl"
+#line 819 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" destructors {");
toknz->current_methods_type = METH_DESTRUCTOR;
}}
break;
case 107:
-#line 828 "lib/eolian/eo_lexer.rl"
+#line 826 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" properties {");
toknz->current_nesting++;
}}
break;
case 108:
-#line 834 "lib/eolian/eo_lexer.rl"
+#line 832 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" begin methods");
toknz->current_methods_type = METH_REGULAR;
}}
break;
case 109:
-#line 841 "lib/eolian/eo_lexer.rl"
+#line 839 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
INF("end class: %s", toknz->tmp.kls->name);
}}
break;
case 110:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 111:
-#line 996 "lib/eolian/eo_lexer.rl"
+#line 994 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 112:
-#line 999 "lib/eolian/eo_lexer.rl"
+#line 997 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 113:
-#line 1000 "lib/eolian/eo_lexer.rl"
+#line 998 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 114:
-#line 1001 "lib/eolian/eo_lexer.rl"
+#line 999 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 115:
-#line 808 "lib/eolian/eo_lexer.rl"
+#line 806 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
}}
break;
case 116:
-#line 811 "lib/eolian/eo_lexer.rl"
+#line 809 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
}}
break;
case 117:
-#line 841 "lib/eolian/eo_lexer.rl"
+#line 839 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
INF("end class: %s", toknz->tmp.kls->name);
}}
break;
case 118:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 119:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 120:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 121:
-#line 1014 "lib/eolian/eo_lexer.rl"
+#line 1012 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
INF("begin class: %s", toknz->tmp.kls->name);
}}
break;
case 122:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 123:
-#line 1049 "lib/eolian/eo_lexer.rl"
+#line 1047 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 124:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 125:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
{( toknz->p)++; goto _out; } /* necessary to stop scanners */
}}
break;
-#line 2716 "lib/eolian/eo_lexer.c"
+#line 2710 "lib/eolian/eo_lexer.c"
}
}
#line 1 "NONE"
{ toknz->ts = 0;}
break;
-#line 2729 "lib/eolian/eo_lexer.c"
+#line 2723 "lib/eolian/eo_lexer.c"
}
}
_out: {}
}
-#line 1104 "lib/eolian/eo_lexer.rl"
+#line 1102 "lib/eolian/eo_lexer.rl"
if ( toknz->cs ==
-#line 2750 "lib/eolian/eo_lexer.c"
+#line 2744 "lib/eolian/eo_lexer.c"
-1
-#line 1105 "lib/eolian/eo_lexer.rl"
+#line 1103 "lib/eolian/eo_lexer.rl"
)
{
ERR("%s: wrong termination", source);
Eina_Bool ret = EINA_TRUE;
-#line 2798 "lib/eolian/eo_lexer.c"
+#line 2792 "lib/eolian/eo_lexer.c"
{
toknz->cs = eo_tokenizer_start;
toknz->ts = 0;
toknz->act = 0;
}
-#line 1150 "lib/eolian/eo_lexer.rl"
+#line 1148 "lib/eolian/eo_lexer.rl"
toknz->p = buffer;
toknz->eof = toknz->pe;
-#line 2815 "lib/eolian/eo_lexer.c"
+#line 2809 "lib/eolian/eo_lexer.c"
{
int _klen;
unsigned int _trans;
#line 1 "NONE"
{ toknz->ts = ( toknz->p);}
break;
-#line 2834 "lib/eolian/eo_lexer.c"
+#line 2828 "lib/eolian/eo_lexer.c"
}
}
switch ( *_acts++ )
{
case 0:
-#line 384 "lib/eolian/eo_lexer.rl"
+#line 386 "lib/eolian/eo_lexer.rl"
{
toknz->current_line += 1;
DBG("inc[%d] %d", toknz->cs, toknz->current_line);
}
break;
case 1:
-#line 389 "lib/eolian/eo_lexer.rl"
+#line 391 "lib/eolian/eo_lexer.rl"
{
toknz->saved.line = toknz->current_line;
DBG("save line[%d] %d", toknz->cs, toknz->current_line);
}
break;
case 2:
-#line 394 "lib/eolian/eo_lexer.rl"
+#line 396 "lib/eolian/eo_lexer.rl"
{
toknz->saved.tok = ( toknz->p);
DBG("save token[%d] %p %c", toknz->cs, ( toknz->p), *( toknz->p));
}
break;
case 3:
-#line 471 "lib/eolian/eo_lexer.rl"
+#line 473 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.accessor) ABORT(toknz, "No accessor!!!");
if (toknz->tmp.accessor->ret != NULL)
}
break;
case 4:
-#line 478 "lib/eolian/eo_lexer.rl"
+#line 480 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.accessor) ABORT(toknz, "No accessor!!!");
if (!toknz->tmp.accessor->ret) ABORT(toknz, "No ret!!!");
}
break;
case 5:
-#line 487 "lib/eolian/eo_lexer.rl"
+#line 489 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.accessor) ABORT(toknz, "No accessor!!!");
toknz->tmp.accessor->legacy = _eo_tokenizer_token_get(toknz, ( toknz->p));
}
break;
case 6:
-#line 501 "lib/eolian/eo_lexer.rl"
+#line 503 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.accessor_param = _eo_tokenizer_accessor_param_get(toknz, ( toknz->p));
}
break;
case 7:
-#line 505 "lib/eolian/eo_lexer.rl"
+#line 507 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.accessor_param)
ABORT(toknz, "No accessor param!!!");
}
break;
case 8:
-#line 534 "lib/eolian/eo_lexer.rl"
+#line 536 "lib/eolian/eo_lexer.rl"
{
const char *c = _eo_tokenizer_token_get(toknz, ( toknz->p)-2);
if (toknz->tmp.param == NULL)
}
break;
case 9:
-#line 542 "lib/eolian/eo_lexer.rl"
+#line 544 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.param = _eo_tokenizer_param_get(toknz, ( toknz->p));
if (toknz->tmp.params)
}
break;
case 15:
-#line 765 "lib/eolian/eo_lexer.rl"
+#line 763 "lib/eolian/eo_lexer.rl"
{
if (toknz->tmp.meth != NULL)
ABORT(toknz, "there is a pending method definition %s", toknz->tmp.meth->name);
}
break;
case 16:
-#line 797 "lib/eolian/eo_lexer.rl"
+#line 795 "lib/eolian/eo_lexer.rl"
{
const char *base = _eo_tokenizer_token_get(toknz, ( toknz->p));
toknz->tmp.str_items = eina_list_append(toknz->tmp.str_items, base);
}
break;
case 17:
-#line 802 "lib/eolian/eo_lexer.rl"
+#line 800 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
toknz->tmp.kls->inherits = toknz->tmp.str_items;
}
break;
case 18:
-#line 850 "lib/eolian/eo_lexer.rl"
+#line 848 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
toknz->tmp.event = _eo_tokenizer_event_get(toknz, ( toknz->p));
}
break;
case 19:
-#line 856 "lib/eolian/eo_lexer.rl"
+#line 854 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.event) ABORT(toknz, "No event!!!");
if (toknz->tmp.event->type != NULL)
}
break;
case 20:
-#line 863 "lib/eolian/eo_lexer.rl"
+#line 861 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.event) ABORT(toknz, "No event!!!");
if (toknz->tmp.event->comment != NULL)
}
break;
case 21:
-#line 871 "lib/eolian/eo_lexer.rl"
+#line 869 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
if (toknz->tmp.kls->legacy_prefix != NULL)
}
break;
case 22:
-#line 880 "lib/eolian/eo_lexer.rl"
+#line 878 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
if (toknz->tmp.kls->eo_prefix != NULL)
}
break;
case 23:
-#line 889 "lib/eolian/eo_lexer.rl"
+#line 887 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
if (toknz->tmp.kls->data_type != NULL)
}
break;
case 24:
-#line 902 "lib/eolian/eo_lexer.rl"
+#line 900 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
toknz->tmp.impl = _eo_tokenizer_implement_get(toknz, ( toknz->p));
}
break;
case 25:
-#line 908 "lib/eolian/eo_lexer.rl"
+#line 906 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
if (toknz->tmp.impl->legacy)
}
break;
case 26:
-#line 915 "lib/eolian/eo_lexer.rl"
+#line 913 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
if (!toknz->tmp.impl->legacy)
}
break;
case 27:
-#line 922 "lib/eolian/eo_lexer.rl"
+#line 920 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
toknz->tmp.impl_leg_param = calloc(1, sizeof(Eo_Implement_Legacy_Param_Def));
}
break;
case 28:
-#line 931 "lib/eolian/eo_lexer.rl"
+#line 929 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl_leg_param)
ABORT(toknz, "No implement legacy param!!!");
}
break;
case 29:
-#line 937 "lib/eolian/eo_lexer.rl"
+#line 935 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl_leg_param)
ABORT(toknz, "No implement legacy param!!!");
}
break;
case 30:
-#line 943 "lib/eolian/eo_lexer.rl"
+#line 941 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
if (!toknz->tmp.impl->legacy)
}
break;
case 31:
-#line 950 "lib/eolian/eo_lexer.rl"
+#line 948 "lib/eolian/eo_lexer.rl"
{
if (!toknz->tmp.impl) ABORT(toknz, "No implement!!!");
if (!toknz->tmp.impl->legacy)
}
break;
case 32:
-#line 1021 "lib/eolian/eo_lexer.rl"
+#line 1019 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.kls_type = EOLIAN_CLASS_REGULAR;
}
break;
case 33:
-#line 1024 "lib/eolian/eo_lexer.rl"
+#line 1022 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.kls_type = EOLIAN_CLASS_ABSTRACT;
}
break;
case 34:
-#line 1027 "lib/eolian/eo_lexer.rl"
+#line 1025 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.kls_type = EOLIAN_CLASS_MIXIN;
}
break;
case 35:
-#line 1030 "lib/eolian/eo_lexer.rl"
+#line 1028 "lib/eolian/eo_lexer.rl"
{
toknz->tmp.kls_type = EOLIAN_CLASS_INTERFACE;
}
break;
case 36:
-#line 1034 "lib/eolian/eo_lexer.rl"
+#line 1032 "lib/eolian/eo_lexer.rl"
{
if (toknz->tmp.kls != NULL)
ABORT(toknz, "there is a pending class definition %s", toknz->tmp.kls->name);
{ toknz->te = ( toknz->p)+1;}
break;
case 40:
-#line 463 "lib/eolian/eo_lexer.rl"
+#line 465 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.accessor) ABORT(toknz, "No accessor!!!");
if (toknz->tmp.accessor->comment != NULL)
}}
break;
case 41:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 42:
-#line 526 "lib/eolian/eo_lexer.rl"
+#line 528 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;}
break;
case 43:
-#line 527 "lib/eolian/eo_lexer.rl"
+#line 529 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;}
break;
case 44:
-#line 492 "lib/eolian/eo_lexer.rl"
+#line 494 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" }");
if (!toknz->tmp.prop) ABORT(toknz, "No prop!!!");
}}
break;
case 45:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 46:
-#line 522 "lib/eolian/eo_lexer.rl"
+#line 524 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 47:
-#line 525 "lib/eolian/eo_lexer.rl"
+#line 527 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 48:
-#line 492 "lib/eolian/eo_lexer.rl"
+#line 494 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
INF(" }");
if (!toknz->tmp.prop) ABORT(toknz, "No prop!!!");
}}
break;
case 49:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 50:
-#line 525 "lib/eolian/eo_lexer.rl"
+#line 527 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}}
break;
case 51:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 52:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 53:
-#line 551 "lib/eolian/eo_lexer.rl"
+#line 553 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" }");
toknz->tmp.param = NULL;
}}
break;
case 54:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 55:
-#line 567 "lib/eolian/eo_lexer.rl"
+#line 569 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 56:
-#line 569 "lib/eolian/eo_lexer.rl"
+#line 571 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 57:
-#line 551 "lib/eolian/eo_lexer.rl"
+#line 553 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
INF(" }");
toknz->tmp.param = NULL;
}}
break;
case 58:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 59:
-#line 569 "lib/eolian/eo_lexer.rl"
+#line 571 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}}
break;
case 60:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 61:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 62:
-#line 576 "lib/eolian/eo_lexer.rl"
+#line 578 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" get {");
toknz->tmp.accessor = _eo_tokenizer_accessor_get(toknz, GETTER);
}}
break;
case 63:
-#line 583 "lib/eolian/eo_lexer.rl"
+#line 585 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" set {");
toknz->tmp.accessor = _eo_tokenizer_accessor_get(toknz, SETTER);
}}
break;
case 64:
-#line 590 "lib/eolian/eo_lexer.rl"
+#line 592 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" keys {");
toknz->current_nesting++;
}}
break;
case 65:
-#line 597 "lib/eolian/eo_lexer.rl"
+#line 599 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" values {");
toknz->current_nesting++;
}}
break;
case 66:
-#line 604 "lib/eolian/eo_lexer.rl"
+#line 606 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.prop) ABORT(toknz, "No property!!!");
- if (eina_list_count(toknz->tmp.prop->values) == 0)
- WRN("property '%s' has no values.", toknz->tmp.prop->name);
if (eina_list_count(toknz->tmp.prop->accessors) == 0)
WRN("property '%s' has no accessors.", toknz->tmp.prop->name);
INF(" }");
}}
break;
case 67:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 69:
-#line 604 "lib/eolian/eo_lexer.rl"
+#line 606 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
if (!toknz->tmp.prop) ABORT(toknz, "No property!!!");
- if (eina_list_count(toknz->tmp.prop->values) == 0)
- WRN("property '%s' has no values.", toknz->tmp.prop->name);
if (eina_list_count(toknz->tmp.prop->accessors) == 0)
WRN("property '%s' has no accessors.", toknz->tmp.prop->name);
INF(" }");
}}
break;
case 70:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 71:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 72:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 75:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 78:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 79:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 81:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 83:
-#line 750 "lib/eolian/eo_lexer.rl"
+#line 748 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;}
break;
case 84:
-#line 751 "lib/eolian/eo_lexer.rl"
+#line 749 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;}
break;
case 85:
{ toknz->te = ( toknz->p)+1;{
Eina_List **l = NULL;
if (!toknz->tmp.meth) ABORT(toknz, "No method!!!");
- if (eina_list_count(toknz->tmp.meth->params) == 0)
- WRN("method '%s' has no parameters.", toknz->tmp.meth->name);
INF(" }");
switch (toknz->current_methods_type) {
case METH_CONSTRUCTOR:
}}
break;
case 86:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 87:
-#line 745 "lib/eolian/eo_lexer.rl"
+#line 743 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 88:
-#line 749 "lib/eolian/eo_lexer.rl"
+#line 747 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 89:
{ toknz->te = ( toknz->p);( toknz->p)--;{
Eina_List **l = NULL;
if (!toknz->tmp.meth) ABORT(toknz, "No method!!!");
- if (eina_list_count(toknz->tmp.meth->params) == 0)
- WRN("method '%s' has no parameters.", toknz->tmp.meth->name);
INF(" }");
switch (toknz->current_methods_type) {
case METH_CONSTRUCTOR:
}}
break;
case 90:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 91:
-#line 749 "lib/eolian/eo_lexer.rl"
+#line 747 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}}
break;
case 92:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 93:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 94:
-#line 758 "lib/eolian/eo_lexer.rl"
+#line 756 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.meth) ABORT(toknz, "No method!!!");
INF(" %s {", toknz->tmp.meth->name);
}}
break;
case 95:
-#line 771 "lib/eolian/eo_lexer.rl"
+#line 769 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" }");
toknz->current_methods_type = METH_TYPE_LAST;
}}
break;
case 96:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 97:
-#line 781 "lib/eolian/eo_lexer.rl"
+#line 779 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 98:
-#line 771 "lib/eolian/eo_lexer.rl"
+#line 769 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
INF(" }");
toknz->current_methods_type = METH_TYPE_LAST;
}}
break;
case 99:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 100:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 101:
-#line 790 "lib/eolian/eo_lexer.rl"
+#line 788 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
if (toknz->tmp.kls->comment != NULL)
}}
break;
case 102:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 103:
-#line 808 "lib/eolian/eo_lexer.rl"
+#line 806 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
}}
break;
case 104:
-#line 811 "lib/eolian/eo_lexer.rl"
+#line 809 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
}}
break;
case 105:
-#line 814 "lib/eolian/eo_lexer.rl"
+#line 812 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" constructors {");
toknz->current_methods_type = METH_CONSTRUCTOR;
}}
break;
case 106:
-#line 821 "lib/eolian/eo_lexer.rl"
+#line 819 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" destructors {");
toknz->current_methods_type = METH_DESTRUCTOR;
}}
break;
case 107:
-#line 828 "lib/eolian/eo_lexer.rl"
+#line 826 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" properties {");
toknz->current_nesting++;
}}
break;
case 108:
-#line 834 "lib/eolian/eo_lexer.rl"
+#line 832 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
INF(" begin methods");
toknz->current_methods_type = METH_REGULAR;
}}
break;
case 109:
-#line 841 "lib/eolian/eo_lexer.rl"
+#line 839 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
INF("end class: %s", toknz->tmp.kls->name);
}}
break;
case 110:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 111:
-#line 996 "lib/eolian/eo_lexer.rl"
+#line 994 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 112:
-#line 999 "lib/eolian/eo_lexer.rl"
+#line 997 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 113:
-#line 1000 "lib/eolian/eo_lexer.rl"
+#line 998 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 114:
-#line 1001 "lib/eolian/eo_lexer.rl"
+#line 999 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 115:
-#line 808 "lib/eolian/eo_lexer.rl"
+#line 806 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
}}
break;
case 116:
-#line 811 "lib/eolian/eo_lexer.rl"
+#line 809 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
}}
break;
case 117:
-#line 841 "lib/eolian/eo_lexer.rl"
+#line 839 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
INF("end class: %s", toknz->tmp.kls->name);
}}
break;
case 118:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 119:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 120:
-#line 399 "lib/eolian/eo_lexer.rl"
+#line 401 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("comment[%d] line%03d:%03d", toknz->cs,
toknz->saved.line, toknz->current_line);
}}
break;
case 121:
-#line 1014 "lib/eolian/eo_lexer.rl"
+#line 1012 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
if (!toknz->tmp.kls) ABORT(toknz, "No class!!!");
INF("begin class: %s", toknz->tmp.kls->name);
}}
break;
case 122:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p)+1;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 123:
-#line 1049 "lib/eolian/eo_lexer.rl"
+#line 1047 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;}
break;
case 124:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{ toknz->te = ( toknz->p);( toknz->p)--;{
DBG("error[%d]", toknz->cs);
char *s, *d;
}}
break;
case 125:
-#line 408 "lib/eolian/eo_lexer.rl"
+#line 410 "lib/eolian/eo_lexer.rl"
{{( toknz->p) = (( toknz->te))-1;}{
DBG("error[%d]", toknz->cs);
char *s, *d;
{( toknz->p)++; goto _out; } /* necessary to stop scanners */
}}
break;
-#line 4159 "lib/eolian/eo_lexer.c"
+#line 4145 "lib/eolian/eo_lexer.c"
}
}
#line 1 "NONE"
{ toknz->ts = 0;}
break;
-#line 4172 "lib/eolian/eo_lexer.c"
+#line 4158 "lib/eolian/eo_lexer.c"
}
}
_out: {}
}
-#line 1158 "lib/eolian/eo_lexer.rl"
+#line 1156 "lib/eolian/eo_lexer.rl"
if ( toknz->cs ==
-#line 4193 "lib/eolian/eo_lexer.c"
+#line 4179 "lib/eolian/eo_lexer.c"
-1
-#line 1159 "lib/eolian/eo_lexer.rl"
+#line 1157 "lib/eolian/eo_lexer.rl"
)
{
ERR("%s: wrong termination", source);