rpc_scan.h (1897) | rpc_scan.h (8874) |
---|---|
1/* 2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 3 * unrestricted use provided that this legend is included on all tape 4 * media and as a part of the software program in whole or part. Users 5 * may copy or modify Sun RPC without charge, but are not authorized 6 * to license or distribute it to anyone else except as part of a product or 7 * program developed by the user. | 1/* 2 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for 3 * unrestricted use provided that this legend is included on all tape 4 * media and as a part of the software program in whole or part. Users 5 * may copy or modify Sun RPC without charge, but are not authorized 6 * to license or distribute it to anyone else except as part of a product or 7 * program developed by the user. |
8 * | 8 * |
9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 10 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 11 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. | 9 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE 10 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR 11 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. |
12 * | 12 * |
13 * Sun RPC is provided with no support and without any obligation on the 14 * part of Sun Microsystems, Inc. to assist in its use, correction, 15 * modification or enhancement. | 13 * Sun RPC is provided with no support and without any obligation on the 14 * part of Sun Microsystems, Inc. to assist in its use, correction, 15 * modification or enhancement. |
16 * | 16 * |
17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 19 * OR ANY PART THEREOF. | 17 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE 18 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC 19 * OR ANY PART THEREOF. |
20 * | 20 * |
21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue 22 * or profits or other special, indirect and consequential damages, even if 23 * Sun has been advised of the possibility of such damages. | 21 * In no event will Sun Microsystems, Inc. be liable for any lost revenue 22 * or profits or other special, indirect and consequential damages, even if 23 * Sun has been advised of the possibility of such damages. |
24 * | 24 * |
25 * Sun Microsystems, Inc. 26 * 2550 Garcia Avenue 27 * Mountain View, California 94043 28 * 29 * from: @(#)rpc_scan.h 1.3 87/03/09 (C) 1987 SMI 30 * from: @(#)rpc_scan.h 2.1 88/08/01 4.0 RPCSRC | 25 * Sun Microsystems, Inc. 26 * 2550 Garcia Avenue 27 * Mountain View, California 94043 28 * 29 * from: @(#)rpc_scan.h 1.3 87/03/09 (C) 1987 SMI 30 * from: @(#)rpc_scan.h 2.1 88/08/01 4.0 RPCSRC |
31 * $Id: rpc_scan.h,v 1.1 1993/09/13 23:20:18 jtc Exp $ | 31 * $Id: rpc_scan.h,v 1.1 1994/08/07 18:01:35 wollman Exp $ |
32 */ 33 34/* | 32 */ 33 34/* |
35 * rpc_scan.h, Definitions for the RPCL scanner 36 * Copyright (C) 1987, Sun Microsystems, Inc. | 35 * rpc_scan.h, Definitions for the RPCL scanner 36 * Copyright (C) 1987, Sun Microsystems, Inc. |
37 */ 38 39/* | 37 */ 38 39/* |
40 * kinds of tokens | 40 * kinds of tokens |
41 */ 42enum tok_kind { 43 TOK_IDENT, 44 TOK_STRCONST, 45 TOK_LPAREN, 46 TOK_RPAREN, 47 TOK_LBRACE, 48 TOK_RBRACE, --- 27 unchanged lines hidden (view full) --- 76 TOK_VOID, 77 TOK_PROGRAM, 78 TOK_VERSION, 79 TOK_EOF 80}; 81typedef enum tok_kind tok_kind; 82 83/* | 41 */ 42enum tok_kind { 43 TOK_IDENT, 44 TOK_STRCONST, 45 TOK_LPAREN, 46 TOK_RPAREN, 47 TOK_LBRACE, 48 TOK_RBRACE, --- 27 unchanged lines hidden (view full) --- 76 TOK_VOID, 77 TOK_PROGRAM, 78 TOK_VERSION, 79 TOK_EOF 80}; 81typedef enum tok_kind tok_kind; 82 83/* |
84 * a token | 84 * a token |
85 */ 86struct token { 87 tok_kind kind; 88 char *str; 89}; 90typedef struct token token; 91 92 93/* | 85 */ 86struct token { 87 tok_kind kind; 88 char *str; 89}; 90typedef struct token token; 91 92 93/* |
94 * routine interface | 94 * routine interface |
95 */ 96void scanprint(); 97void scan(); 98void scan2(); 99void scan3(); 100void scan_num(); 101void peek(); 102int peekscan(); 103void get_token(); | 95 */ 96void scanprint(); 97void scan(); 98void scan2(); 99void scan3(); 100void scan_num(); 101void peek(); 102int peekscan(); 103void get_token(); |