q66 pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=8834f8e02d37953b3a84d6946fc86b494dd3ea69
commit 8834f8e02d37953b3a84d6946fc86b494dd3ea69 Author: Daniel Kolesa <d.kol...@osg.samsung.com> Date: Tue May 19 14:25:45 2015 +0100 eolian: initial lex/parse for import statement --- src/lib/eolian/eo_lexer.h | 2 +- src/lib/eolian/eo_parser.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/eolian/eo_lexer.h b/src/lib/eolian/eo_lexer.h index 2840bff..5f9c571 100644 --- a/src/lib/eolian/eo_lexer.h +++ b/src/lib/eolian/eo_lexer.h @@ -26,7 +26,7 @@ enum Tokens \ KW(abstract), KW(constructor), KW(constructors), KW(data), \ KW(destructor), KW(eo), KW(eo_prefix), KW(events), KW(free), \ - KW(get), KW(implements), KW(interface), KW(keys), KW(legacy), \ + KW(get), KW(implements), KW(import), KW(interface), KW(keys), KW(legacy), \ KW(legacy_prefix), KW(methods), KW(mixin), KW(own), KW(params), \ KW(set), KW(type), KW(values), KW(var), KWAT(auto), KWAT(beta), \ KWAT(c_only), KWAT(class), KWAT(const), KWAT(const_get), \ diff --git a/src/lib/eolian/eo_parser.c b/src/lib/eolian/eo_parser.c index f4dc5d2..24089aa 100644 --- a/src/lib/eolian/eo_parser.c +++ b/src/lib/eolian/eo_parser.c @@ -1789,6 +1789,13 @@ parse_unit(Eo_Lexer *ls, Eina_Bool eot) if (eot) goto def; parse_class(ls, EOLIAN_CLASS_INTERFACE); goto found_class; + case KW_import: + { + eo_lexer_get(ls); + check_next(ls, TOK_VALUE); + check_next(ls, ';'); + break; + } case KW_type: { database_type_add(parse_typedef(ls)); --