1*4520Snw141292 2*4520Snw141292#pragma ident "%Z%%M% %I% %E% SMI" 3*4520Snw141292 4*4520Snw141292# 5*4520Snw141292# Extract opcode documentation for sqliteVdbe.c and generate HTML 6*4520Snw141292# 7*4520Snw141292BEGIN { 8*4520Snw141292 print "<html><body bgcolor=white>" 9*4520Snw141292 print "<h1>SQLite Virtual Database Engine Opcodes</h1>" 10*4520Snw141292 print "<table>" 11*4520Snw141292} 12*4520Snw141292/ Opcode: /,/\*\// { 13*4520Snw141292 if( $2=="Opcode:" ){ 14*4520Snw141292 printf "<tr><td>%s %s %s %s</td>\n<td>\n", $3, $4, $5, $6 15*4520Snw141292 }else if( $1=="*/" ){ 16*4520Snw141292 printf "</td></tr>\n" 17*4520Snw141292 }else if( NF>1 ){ 18*4520Snw141292 sub(/^ *\*\* /,"") 19*4520Snw141292 gsub(/</,"<") 20*4520Snw141292 gsub(/&/,"&") 21*4520Snw141292 print 22*4520Snw141292 } 23*4520Snw141292} 24*4520Snw141292END { 25*4520Snw141292 print "</table></body></html>" 26*4520Snw141292} 27