aicasm_scan.l (29050) | aicasm_scan.l (29897) |
---|---|
1%{ 2/* 3 * Lexical Analyzer for the Aic7xxx SCSI Host adapter sequencer assembler. 4 * 5 * Copyright (c) 1997 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 15 unchanged lines hidden (view full) --- 24 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * | 1%{ 2/* 3 * Lexical Analyzer for the Aic7xxx SCSI Host adapter sequencer assembler. 4 * 5 * Copyright (c) 1997 Justin T. Gibbs. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 15 unchanged lines hidden (view full) --- 24 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 * |
32 * $Id: aicasm_scan.l,v 1.3 1997/06/27 19:38:51 gibbs Exp $ | 32 * $Id: aicasm_scan.l,v 1.4 1997/09/03 03:44:42 gibbs Exp $ |
33 */ 34 35#include <sys/types.h> 36 37#include <limits.h> 38#include <stdio.h> 39#include <string.h> 40#include <sysexits.h> --- 20 unchanged lines hidden (view full) --- 61<COMMENT>"/"+[^*/\n]* ; 62<COMMENT>"*"+"/" { BEGIN INITIAL; } 63 64{SPACE} ; 65 66 /* Register/SCB/SRAM definition keywords */ 67register { return T_REGISTER; } 68const { yylval.value = FALSE; return T_CONST; } | 33 */ 34 35#include <sys/types.h> 36 37#include <limits.h> 38#include <stdio.h> 39#include <string.h> 40#include <sysexits.h> --- 20 unchanged lines hidden (view full) --- 61<COMMENT>"/"+[^*/\n]* ; 62<COMMENT>"*"+"/" { BEGIN INITIAL; } 63 64{SPACE} ; 65 66 /* Register/SCB/SRAM definition keywords */ 67register { return T_REGISTER; } 68const { yylval.value = FALSE; return T_CONST; } |
69download { return T_DOWNLOAD; } |
|
69address { return T_ADDRESS; } 70access_mode { return T_ACCESS_MODE; } 71RW|RO|WO { 72 if (strcmp(yytext, "RW") == 0) 73 yylval.value = RW; 74 else if (strcmp(yytext, "RO") == 0) 75 yylval.value = RO; 76 else --- 173 unchanged lines hidden --- | 70address { return T_ADDRESS; } 71access_mode { return T_ACCESS_MODE; } 72RW|RO|WO { 73 if (strcmp(yytext, "RW") == 0) 74 yylval.value = RW; 75 else if (strcmp(yytext, "RO") == 0) 76 yylval.value = RO; 77 else --- 173 unchanged lines hidden --- |