|
MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
|
Generates syntax-highlighted HTML output from MXVM source code. More...
#include <html_gen.hpp>
Public Member Functions | |
| HTMLGen (const std::string &src) | |
| Construct an HTML generator from MXVM source text. | |
| void | output (std::ostream &out, std::string filename) |
| Write the generated HTML to an output stream. | |
Private Attributes | |
| std::string | source |
| the MXVM source text to convert | |
Generates syntax-highlighted HTML output from MXVM source code.
Definition at line 15 of file html_gen.hpp.
| mxvm::HTMLGen::HTMLGen | ( | const std::string & | src | ) |
Construct an HTML generator from MXVM source text.
| src | MXVM source code string |
Definition at line 84 of file html_gen.cpp.
References source.
| void mxvm::HTMLGen::output | ( | std::ostream & | out, |
| std::string | filename ) |
Write the generated HTML to an output stream.
| out | Output stream to write HTML to |
| filename | Source filename used in the HTML title |
Definition at line 86 of file html_gen.cpp.
References mxvm::is_label(), mxvm::kInstructions, mxvm::kKeywords, mxvm::kTypes, mxvm::None, and source.
Referenced by writeHtml().
|
private |
the MXVM source text to convert
Definition at line 31 of file html_gen.hpp.