/******************************************************************************
- * Copyright (c) 2000-2015 Ericsson Telecom AB
+ * Copyright (c) 2000-2016 Ericsson Telecom AB
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Balasko, Jeno
+ * Baranyi, Botond
+ * Delic, Adam
+ * Forstner, Matyas
+ * Raduly, Csaba
+ * Szabados, Kristof
+ * Szabo, Janos Zoltan – initial implementation
+ * Szalai, Gabor
+ * Zalanyi, Balazs Andor
+ *
******************************************************************************/
%option noyywrap
%option never-interactive
Location loc(infile, yylloc);
if (*yytext) {
// the most recently parsed token is known
- loc.warning("in variant attribute, at or before token `%s': %s", yytext, str);
+ if (warnings_for_bad_variants) {
+ loc.warning("in variant attribute, at or before token `%s': %s", yytext, str);
+ } else {
+ loc.error("in variant attribute, at or before token `%s': %s", yytext, str);
+ }
} else {
// the most recently parsed token is unknown
- loc.warning("in variant attribute: %s", str);
+ if (warnings_for_bad_variants) {
+ loc.warning("in variant attribute: %s", str);
+ } else {
+ loc.error("in variant attribute: %s", str);
+ }
}
}