Changeset 565 for trunk/mkopcode_spec.awk
- Timestamp:
- 2008-08-17T16:10:25+02:00 (5 years ago)
- File:
-
- 1 edited
-
trunk/mkopcode_spec.awk (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/mkopcode_spec.awk
r564 r565 10 10 /OPDEF/ { 11 11 if (started) { 12 sub(/".*"/, "") 12 13 if (!match($0, /EXT_([^ |]+).*OP[1S]_([^ |]+).*OP2_([^ |]+).*RES_([^ |)]+).*/, array)) { 13 14 print "error" $0 14 15 exit 15 16 } 16 id= "";17 if (match($0, /\/\* *([0-9]+) *\*\//, m)) {18 id = m[1];17 comment = ""; 18 if (match($0, /\/\* (\d+) \*\//, comments)) { 19 comment = comments[1]; 19 20 } 20 name = ""; 21 if (match($0, /"([^"]+)"/, m)) { 22 name = m[1]; 23 } 24 printf "\tOPSPEC(%10s, %10s, %10s, %10s) /* %s %s */\n", array[1], array[2], array[3], array[4], id, name; 21 printf "\tOPSPEC(%10s, %10s, %10s, %10s)%s\n", array[1], array[2], array[3], array[4], comment; 25 22 next 26 23 }
Note: See TracChangeset
for help on using the changeset viewer.

