DEFAULT type support
git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@349 59561ff5-6e30-0410-9f3c-9617f08c8826
diff --git a/libasn1parser/asn1p_l.l b/libasn1parser/asn1p_l.l
index 6a2a0cc..efa4c1a 100644
--- a/libasn1parser/asn1p_l.l
+++ b/libasn1parser/asn1p_l.l
@@ -285,7 +285,9 @@
}
ABSENT return TOK_ABSENT;
+ /*
ABSTRACT-SYNTAX return TOK_ABSTRACT_SYNTAX;
+ */
ALL return TOK_ALL;
ANY {
/* Appeared in 1990, removed in 1997 */
@@ -485,9 +487,10 @@
yylineno, yytext);
while(YYSTATE != INITIAL)
yy_pop_state();
- yy_top_state(); /* Just to use this function. */
- yyterminate();
- yy_fatal_error("Unexpected token");
+ if(0) {
+ yy_top_state(); /* Just to use this function. */
+ yy_fatal_error("Parse error");
+ }
return -1;
}