File: parse.h

package info (click to toggle)
alsa-tools 1.0.28-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 12,464 kB
  • ctags: 5,787
  • sloc: ansic: 23,609; cpp: 15,057; sh: 12,305; pascal: 1,140; asm: 1,053; xml: 814; makefile: 733; python: 250
file content (115 lines) | stat: -rw-r--r-- 2,140 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/***************************************************************************
                          parse.h  -  description
                             -------------------
    Date                 : May 23  2000
    Copyright            : (C) 2000 by Daniel Bertrand
    Email                : d.bertrand@ieee.ca
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

//#define NUM_OPS 17   //number of op code mneumonic and directives


enum foo {
    MACS=0,
    MACS1,
    MACW,
    MACW1,
    MACINTS,
    MACINTW,
    ACC3,
    MACMV,
    ANDXOR,
    TSTNEG,
    LIMIT,
    LIMIT1,
    LOG,
    EXP,
    INTERP,
    SKIP,
    EQU,
    DS,
    DYNAMIC,
    DYN,
    MACRO,
    DC,
    STATIC,
    STA,
    DIN,
    DOUT,
    DD,
    DT,
    DW,
    DR,
    CONTROL,
    ENDM,
    END,
    INCLUDE,
    NAME,
    FOR,
    ENDFOR,
    IO,
    CONSTANT,
    CON,
    NUM_OPS
        
};


char op_codes[NUM_OPS+1][9]=
  {
    "MACS",
    "MACS1",
    "MACW",
    "MACW1",

    "MACINTS",
    "MACINTW",
    
    "ACC3",
    "MACMV",
    "ANDXOR",
    "TSTNEG",
    "LIMIT",
    "LIMIT1",
    "LOG",
    "EXP",
    "INTERP",
    "SKIP",
    "equ",
    "ds",
    "dynamic",
    "dyn",
    "macro",
    "dc",
    "static",
    "sta",
    "din",
    "dout",
    "delay",
    "table",
    "twrite",
    "tread",
    "control",
    "endm",
    "end",
    "include",
    "name",
    "for",
    "endfor",
    "IO",
    "constant",
    "con",
    "NotAnOp"
  };

//extern int file_num,source_line_num