]>
git.saurik.com Git - apple/javascriptcore.git/blob - docs/make-bytecode-docs.pl
5 open MACHINE
, "<" . $ARGV[0];
6 open OUTPUT
, ">" . $ARGV[1];
10 print OUTPUT
"<style>p code \{ font-size: 14px; \}</style>\n";
13 if (/^ *DEFINE_OPCODE/) {
15 s/^ *DEFINE_OPCODE\(op_//;
22 $format =~ s
|.* /\
* ||;
31 print OUTPUT
"<h2><code>${opcode}</code></h2>\n<p><b>Format: </b><code>\n${format}\n</code></p>\n<p>\n${doc}\n</p>\n";
33 push @undocumented, $opcode;
40 for my $undoc (@undocumented) {
41 print "UNDOCUMENTED: ${undoc}\n";