4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright (c) 1993 by Sun Microsystems, Inc.
26 #pragma ident "%Z%%M% %I% %E% SMI"
29 integer cshift, csize, yynlin
30 common /yyllib/ cshift, csize, yynlin
31 data yynlin/YYNEWLINE/
34 common /yyldat/ yyfnd, ymorf, yyprev, yybgin, yytop
35 integer yyfnd, yymorf, yyprev, yybgin, yytop
37 data yyprev/YYNEWLINE/
40 integer function yylook(dummy)
45 common /Latable/ atable
48 integer verif(Sverif), advan(Sadvan),stoff(Sstoff),match(Smatch)
49 integer sfall(Ssfall),atable(Satable),extra(Sextra), vstop(Svstop)
52 common /yyldat/ yyfnd, yymorf, yyprev, yybgin, yytop, yylsp, yylsta(YYLMAX)
53 common /yyxel/ yyleng, yytext
54 integer yyfnd, yymorf, yylsta, yylsp, yytext, yyprev, yyleng, yytop
55 integer lexshf, yytext(YYLMAX), yyback, yybgin
64 if (yyprev .eq. YYNEWLINE)
72 if(stoff(z) == 0) break
82 if (verif(t) .eq. state){
83 if(advan(t) == YYERROR){
84 call unput(yytext(yyleng))
97 if (t <= yytop .and. verif(t) .eq. state){
98 if(advan(t) == YYERROR){
99 call unput(yytext(yyleng))
109 if(t <= yytop && state == verif(t)){
110 if(advan(t) == YYERROR){
111 call unput(yytext(yyleng))
122 if (state > 0) state = sfall(state)
123 if (state .gt. 0) r = stoff(state)
124 if (state .gt. 0 .and. r .ne. 0)
126 call unput(yytext(yyleng))
138 if (vstop(yyfnd) .gt. 0){
140 if (extra(r) .ne. 0){
143 if (yyback(atable(ilsp), -r) .eq. 1)
146 call unput(yytext(yyleng))
150 yyprev = lexshf(yytext(yyleng))
157 call unput(yytext(yyleng))
159 if (yytext(1) .eq. 0){
163 yyprev = input(dummy)
165 yyprev = lexshf(yyprev)
169 integer function yyback (isub, n)
170 common /Lvstop/ vstop
171 integer vstop(Svstop)
173 while (vstop(isub) .ne. 0){
174 if (vstop(isub) .eq. m){