2 Copyright (C) 2012 Modelon AB
\r
4 This program is free software: you can redistribute it and/or modify
\r
5 it under the terms of the BSD style license.
\r
7 This program is distributed in the hope that it will be useful,
\r
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
10 FMILIB_License.txt file for more details.
\r
12 You should have received a copy of the FMILIB_License.txt file
\r
13 along with this program. If not, contact Modelon AB <http://www.modelon.com>.
\r
17 #include "fmi1_xml_variable_name_parser.tab.h"
\r
18 #define YYSTYPE YYFMI1STYPE
\r
20 #define LEX_VAL(ID_NAME) return ID_NAME;
\r
23 %option bison-bridge
\r
25 q_name "'"({q_char}|{s_escape})+"'"
\r
28 q_char {nondigit}|{digit}|[^'\\]
\r
29 s_escape ("\\'")|("\\\"")|("\\?")|("\\\\")|("\\a")|("\\b")|("\\f")|("\\n")|("\\r")|("\\t")|("\\v")
\r
30 unsigned_integer {digit}+
\r
37 "der(" {LEX_VAL(DER)}
\r
45 {q_name} {LEX_VAL(Q_NAME)}
\r
46 {nondigit} {LEX_VAL(NONDIGIT)}
\r
47 {unsigned_integer} {LEX_VAL(UNSIGNED_INTEGER)}
\r
48 . {LEX_VAL(*yytext)}
\r