MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
mxvm::HTMLGen Class Reference

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

Detailed Description

Generates syntax-highlighted HTML output from MXVM source code.

Definition at line 15 of file html_gen.hpp.

Constructor & Destructor Documentation

◆ HTMLGen()

mxvm::HTMLGen::HTMLGen ( const std::string & src)

Construct an HTML generator from MXVM source text.

Parameters
srcMXVM source code string

Definition at line 84 of file html_gen.cpp.

References source.

Member Function Documentation

◆ output()

void mxvm::HTMLGen::output ( std::ostream & out,
std::string filename )

Write the generated HTML to an output stream.

Parameters
outOutput stream to write HTML to
filenameSource 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().

Member Data Documentation

◆ source

std::string mxvm::HTMLGen::source
private

the MXVM source text to convert

Definition at line 31 of file html_gen.hpp.

Referenced by HTMLGen(), and output().


The documentation for this class was generated from the following files: