Subversion Repositories Vertical

Rev

Rev 2 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 mjames 1
%{
2
/* $Header: c:\\cygwin\\cvsroot/Vert03/spares/sa_lex.l,v 1.1.1.1 2003/11/04 23:34:56 mjames Exp $ */
3
/* $Log: sa_lex.l,v $
4
/* Revision 1.1.1.1  2003/11/04 23:34:56  mjames
5
/* Imported into local repositrory
6
/*
7
 * Revision 1.18  2000/10/02  11:04:20  11:04:20  mjames (Mike James)
8
 * new_vhdl
9
 * 
10
 * Revision 1.17  2000/09/27  14:42:21  14:42:21  mjames (Mike James)
11
 * Part of Release Sep_27_ST_2000
12
 * 
13
 * Revision 1.16  2000/09/21  10:15:51  10:15:51  mjames (Mike James)
14
 * Part of Release Sep21Alpha
15
 * 
16
 * Revision 1.15  2000/08/25  09:57:16  09:57:16  mjames (Mike James)
17
 * Part of Release Aug25_alpha
18
 * 
19
 * Revision 1.14  2000/08/16  08:57:32  08:57:32  mjames (Mike James)
20
 * Part of Release CD01_Aug2000
21
 * 
22
 * Revision 1.13  2000/08/14  14:45:13  14:45:13  mjames (Mike James)
23
 * Part of Release Aug_14_2000
24
 * 
25
 * Revision 1.12  2000/08/11  08:30:34  08:30:34  mjames (Mike James)
26
 * Part of Release Aug_11_2000
27
 * 
28
 * Revision 1.11  2000/08/09  10:31:49  10:31:49  mjames (Mike James)
29
 * Part of Release Aug__9_2000
30
 * 
31
 * Revision 1.10  2000/05/31  11:43:00  11:43:00  mjames (Mike James)
32
 * Part of Release May_31_2000
33
 * 
34
 * Revision 1.9  2000/05/08  17:01:40  17:01:40  mjames (Mike James)
35
 * Part of Release May__8_2000
36
 * 
37
 * Revision 1.8  2000/05/08  16:59:33  16:59:33  mjames (Mike James)
38
 * Part of Release May__8_2000
39
 * 
40
 * Revision 1.7  2000/05/08  16:57:09  16:57:09  mjames (Mike James)
41
 * Part of Release May__8_2000
42
 * 
43
 * Revision 1.6  2000/03/08  16:19:30  16:19:30  mjames (Mike James)
44
 * New version including PC
45
 * 
46
 * Revision 1.3  2000/01/20  15:58:50  15:58:50  mjames (Mike James)
47
 * Part of Release R22
48
 * 
49
 * Revision 1.2  99/12/22  11:15:31  11:15:31  mjames (Mike James)
50
 * Part of Release Dec_22_1999
51
 * 
52
 * Revision 1.1  99/11/23  13:55:08  13:55:08  mjames (Mike James)
53
 * Initial revision
54
 * 
55
 * Revision 1.4  99/06/25  14:35:43  14:35:43  mjames (Mike James)
56
 * Added in reference to expression.h, but no changes made 
57
 * to the function of acfread yet.
58
 * 
59
 * Revision 1.3  98/02/11  11:26:42  11:26:42  mjames (Mike James)
60
 * Checked in for version 6.2a
61
 * 
62
 * Revision 1.2  97/04/23  08:45:04  08:45:04  mjames (Mike James)
63
 * CHecked in for release rel23041997
64
 * 
65
 * Revision 1.1  96/12/13  08:43:24  08:43:24  mjames (Mike James)
66
 * Initial revision
67
 * 
68
 * Revision 1.14  96/07/19  14:38:28  14:38:28  mjames (Mike James)
69
 * Update to give to PRL
70
 *
71
 * Revision 1.13  1996/07/12  15:52:12  mjames
72
 * Sorted out things like Alias and Jumpers
73
 * Work Correctly
74
 * Print COrrectly
75
 *
76
 * Revision 1.12  96/06/17  10:52:22  10:52:22  mjames (Mike James)
77
 * Tidying up
78
 *
79
 * Revision 1.11  96/06/04  11:52:43  11:52:43  mjames (Mike James)
80
 * Slight modifications
81
 *
82
 * Revision 1.10  96/04/26  16:03:54  16:03:54  mjames (Mike James)
83
 *  Set the limit on token length to be consistent with the rest of the code
84
 *
85
 * Revision 1.9  96/03/29  14:47:24  14:47:24  mjames (Mike James)
86
 * Added VHDL netlist writing to the capabilities of ACFREAD
87
 *
88
 * Revision 1.8  96/03/18  13:51:30  13:51:30  mjames (Mike James)
89
 * Real Revision 2.1
90
 *
91
 * Revision 1.6  96/02/13  09:13:19  09:13:19  mjames (Mike James)
92
 * Updated to be version 2.0 with net joining
93
 *
94
 * Revision 1.5  96/02/07  16:01:27  16:01:27  mjames (Mike James)
95
 * Added correct RCS header
96
 *
97
 * Revision 1.4  96/02/07  15:50:32  15:50:32  mjames (Mike James)
98
 * Added RCS ident message
99
 *
100
 * Revision 1.3  96/01/10  13:13:24  13:13:24  mjames (Mike James)
101
 * Works in debug mode with EPLD listings and PCB layout
102
 *
103
 * Revision 1.2  96/01/08  15:23:44  15:23:44  mjames (Mike James)
104
 * Managing to make sense of things now
105
 *
106
 * Revision 1.1  96/01/07  12:40:11  Mike_James
107
 * Initial revision
108
 *
109
 * Revision 1.1  96/01/04  17:55:24  17:55:24  mjames (Mike James)
110
 * Initial revision
111
 *
112
 * Revision 1.2  96/01/04  11:37:16  11:37:16  mjames (Mike James)
113
 * Compete parsing of FIT and ACF with ignore of junk .
114
 *
115
 * Revision 1.1  96/01/04  10:18:25  10:18:25  mjames (Mike James)
116
 * Initial revision
117
 *
118
 *  */
119
#include <stdio.h>
120
/* see makefile for why */
121
#include "net_yacc_tab.h"
122
#include "lx_support.h"
123
#include "generic.h"
124
#include "expression.h"
125
#include "database.h"
126
#define YYLMAX MAXIDLEN
127
 
128
static char IDstr[] = "@(#)$Header: c:\\cygwin\\cvsroot/Vert03/spares/sa_lex.l,v 1.1.1.1 2003/11/04 23:34:56 mjames Exp $";
129
 
130
extern  int yyval;
131
 
132
extern int lineno;
133
%}
134
 
135
L [A-Za-z\~\-]
136
 
137
L2 [A-Za-z0-9_/\~\-\*\$]
138
 
139
Ct [ -\~]
140
 
141
Cm [^\n]
142
 
143
D [0-9]
144
Spc [ \r\t]
145
 
146
S [^\"]
147
Q [\"]
148
 
149
 
150
%%
151
 
152
";"                { return(SEMI); };
153
"!"                { return(PLING); };
154
"."                { return(DOT); };
155
","                { return(COMMA); };
156
 
157
{Q}{S}*{Q}        {  yylval.string = make_string(yytext) ; /* do it anyway */
158
                   return(ASTRING); };
159
{L2}{L2}*         { yylval.string = make_string(yytext) ; /* do it anyway */
160
                   return(ASTRING); };
161
 
162
"--"{Cm}*"\n"     { lineno++; return(NL);/* VHDL comment */  };
163
"/\*"{Ct}*"*\/"   { break; /* c comment */   };
164
 
165
{Spc}             { break; /* white space */ };
166
"\n"              { lineno++; return(NL); };
167
%%
168
/* dummy functions */
169
void tidy_lex(void) 
170
  {
171
  }
172
 
173
expression_t * compile_expression_from_string(char * s)
174
  {
175
  }