Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 61 lines (54 sloc) 1.892 kb
3fb7a05 Introduce verilog to CVS.
steve authored
1 #ifndef __parse_misc_H
2 #define __parse_misc_H
3 /*
b734ecf Macintosh compilers do not support ident.
steve authored
4 * Copyright (c) 1998-2000 Stephen Williams (steve@icarus.com)
3fb7a05 Introduce verilog to CVS.
steve authored
5 *
6 * This source code is free software; you can redistribute it
7 * and/or modify it in source code form under the terms of the GNU
8 * General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
10 * any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 */
52bf4e6 conditional ident string using autoconfig.
steve authored
21 #ifdef HAVE_CVS_IDENT
1507dcd More C-like use of vlltype.
steve authored
22 #ident "$Id: parse_misc.h,v 1.7 2003/03/08 20:58:18 steve Exp $"
3fb7a05 Introduce verilog to CVS.
steve authored
23 #endif
24
25 # include <list>
26 # include "pform.h"
27
28 /*
29 * The vlltype supports the passing of detailed source file location
30 * information between the lexical analyzer and the parser. Defining
31 * YYLTYPE compels the lexor to use this type and not something other.
32 */
33 struct vlltype {
34 unsigned first_line;
35 unsigned first_column;
36 unsigned last_line;
37 unsigned last_column;
38 const char*text;
39 };
1507dcd More C-like use of vlltype.
steve authored
40 # define YYLTYPE struct vlltype
7ad66b0 Support old/new bison yylloc.
steve authored
41
42 /* This for compatibility with new and older bison versions. */
43 #ifndef yylloc
44 # define yylloc VLlloc
45 #endif
3fb7a05 Introduce verilog to CVS.
steve authored
46 extern YYLTYPE yylloc;
47
48 /*
49 * Interface into the lexical analyzer. ...
50 */
51 extern int VLlex();
52 extern void VLerror(const char*msg);
53 extern void VLerror(const YYLTYPE&loc, const char*msg);
54 #define yywarn VLwarn
55 extern void VLwarn(const YYLTYPE&loc, const char*msg);
56
b118634 Handle procedural conditional, and some
steve authored
57 extern unsigned error_count, warn_count;
676695c @caryr Check for extra digits in sized binary, octal and hex constants.
caryr authored
58 extern unsigned long based_size;
3fb7a05 Introduce verilog to CVS.
steve authored
59
60 #endif
Something went wrong with that request. Please try again.