3
Copyright (C) 2006 Gabor Csardi <csardi@rmki.kfki.hu>
4
MTA RMKI, Konkoly-Thege Miklos st. 29-33, Budapest 1121, Hungary
6
This program is free software; you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 2 of the License, or
9
(at your option) any later version.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
27
Copyright (C) 2006 Gabor Csardi <csardi@rmki.kfki.hu>
28
MTA RMKI, Konkoly-Thege Miklos st. 29-33, Budapest 1121, Hungary
30
This program is free software; you can redistribute it and/or modify
31
it under the terms of the GNU General Public License as published by
32
the Free Software Foundation; either version 2 of the License, or
33
(at your option) any later version.
35
This program is distributed in the hope that it will be useful,
36
but WITHOUT ANY WARRANTY; without even the implied warranty of
37
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38
GNU General Public License for more details.
40
You should have received a copy of the GNU General Public License
41
along with this program; if not, write to the Free Software
42
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
49
#include "foreign-lgl-parser.h"
50
extern long int igraph_lgl_mylineno;
52
void igraph_i_lgl_reset_scanner() {
58
%option prefix="igraph_lgl_yy"
59
%option outfile="lex.yy.c"
67
/* --------------------------------------------------hashmark------*/
70
/* ------------------------------------------------whitespace------*/
73
/* ---------------------------------------------------newline------*/
74
\n\r|\r\n|\n|\r { igraph_lgl_mylineno++; return NEWLINE; }
76
/* ----------------------------------------------alphanumeric------*/
77
{alnum}+ { return ALNUM; }
79
<<EOF>> { if (igraph_i_lgl_eof) {