Nearly CC
An educational compiler skeleton
Public Member Functions | List of all members
LowLevelFormatter Class Reference

Implementation of Formatter for low-level code. More...

#include "lowlevel_formatter.h"

Inheritance diagram for LowLevelFormatter:
Inheritance graph
[legend]
Collaboration diagram for LowLevelFormatter:
Collaboration graph
[legend]

Public Member Functions

virtual std::string format_operand (const Operand &operand) const
 Convert a low-level Operand to a formatted string. More...
 
virtual std::string format_instruction (const Instruction *ins) const
 Convert a low-level Instruction to a formatted string. More...
 

Detailed Description

Implementation of Formatter for low-level code.

Member Function Documentation

◆ format_instruction()

std::string LowLevelFormatter::format_instruction ( const Instruction ins) const
virtual

Convert a low-level Instruction to a formatted string.

Parameters
insthe low-level Instruction to format
Returns
the string formatted from the Instruction

Implements Formatter.

◆ format_operand()

std::string LowLevelFormatter::format_operand ( const Operand operand) const
virtual

Convert a low-level Operand to a formatted string.

Parameters
operandthe low-level Operand to format
Returns
the string formatted from the Operand

Reimplemented from Formatter.


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