/*-1* Copyright (c) 19932* The Regents of the University of California. All rights reserved.3* Copyright (c) 20074* Herbert Xu <[email protected]>. All rights reserved.5*6* This code is derived from software contributed to Berkeley by7* Kenneth Almquist.8*9* Redistribution and use in source and binary forms, with or without10* modification, are permitted provided that the following conditions11* are met:12* 1. Redistributions of source code must retain the above copyright13* notice, this list of conditions and the following disclaimer.14* 2. Redistributions in binary form must reproduce the above copyright15* notice, this list of conditions and the following disclaimer in the16* documentation and/or other materials provided with the distribution.17* 3. Neither the name of the University nor the names of its contributors18* may be used to endorse or promote products derived from this software19* without specific prior written permission.20*21* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND22* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE23* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE24* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE25* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL26* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS27* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)28* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT29* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY30* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF31* SUCH DAMAGE.32*/3334#define ARITH_ASS 13536#define ARITH_OR 237#define ARITH_AND 338#define ARITH_BAD 439#define ARITH_NUM 540#define ARITH_VAR 641#define ARITH_NOT 74243#define ARITH_BINOP_MIN 844#define ARITH_LE 845#define ARITH_GE 946#define ARITH_LT 1047#define ARITH_GT 1148#define ARITH_EQ 1249#define ARITH_REM 1350#define ARITH_BAND 1451#define ARITH_LSHIFT 1552#define ARITH_RSHIFT 1653#define ARITH_MUL 1754#define ARITH_ADD 1855#define ARITH_BOR 1956#define ARITH_SUB 2057#define ARITH_BXOR 2158#define ARITH_DIV 2259#define ARITH_NE 2360#define ARITH_BINOP_MAX 246162#define ARITH_ASS_MIN 2463#define ARITH_REMASS 2464#define ARITH_BANDASS 2565#define ARITH_LSHIFTASS 2666#define ARITH_RSHIFTASS 2767#define ARITH_MULASS 2868#define ARITH_ADDASS 2969#define ARITH_BORASS 3070#define ARITH_SUBASS 3171#define ARITH_BXORASS 3272#define ARITH_DIVASS 3373#define ARITH_ASS_MAX 347475#define ARITH_LPAREN 3476#define ARITH_RPAREN 3577#define ARITH_BNOT 3678#define ARITH_QMARK 3779#define ARITH_COLON 388081extern const char *arith_buf;8283union yystype {84arith_t val;85char *name;86};8788extern union yystype yylval;8990arith_t strtoarith_t(const char *restrict nptr, char **restrict endptr);91int yylex(void);929394