CBMC
assembler_parsert Class Reference

#include <assembler_parser.h>

+ Inheritance diagram for assembler_parsert:
+ Collaboration diagram for assembler_parsert:

Public Types

typedef std::vector< ireptinstructiont
 

Public Member Functions

void add_token (const irept &irep)
 
void new_instruction ()
 
 assembler_parsert (message_handlert &message_handler)
 
bool parse () override
 
- Public Member Functions inherited from parsert
 parsert ()
 
 parsert (message_handlert &message_handler)
 
virtual ~parsert ()
 
bool read (char &ch)
 
bool eof ()
 
void parse_error (const std::string &message, const std::string &before)
 
void inc_line_no ()
 
void set_line_no (unsigned _line_no)
 
void set_file (const irep_idt &file)
 
irep_idt get_file () const
 
unsigned get_line_no () const
 
unsigned get_column () const
 
void set_column (unsigned _column)
 
void set_source_location (exprt &e)
 
void set_function (const irep_idt &function)
 
void advance_column (unsigned token_width)
 

Public Attributes

std::list< instructiontinstructions
 
- Public Attributes inherited from parsert
std::istream * in
 
std::string this_line
 
std::string last_line
 
std::vector< exprtstack
 
messaget log
 

Additional Inherited Members

- Protected Attributes inherited from parsert
source_locationt source_location
 
unsigned line_no
 
unsigned previous_line_no
 
unsigned column
 

Detailed Description

Definition at line 20 of file assembler_parser.h.

Member Typedef Documentation

◆ instructiont

typedef std::vector<irept> assembler_parsert::instructiont

Definition at line 23 of file assembler_parser.h.

Constructor & Destructor Documentation

◆ assembler_parsert()

assembler_parsert::assembler_parsert ( message_handlert message_handler)
inlineexplicit

Definition at line 39 of file assembler_parser.h.

Member Function Documentation

◆ add_token()

void assembler_parsert::add_token ( const irept irep)
inline

Definition at line 26 of file assembler_parser.h.

◆ new_instruction()

void assembler_parsert::new_instruction ( )
inline

Definition at line 34 of file assembler_parser.h.

◆ parse()

bool assembler_parsert::parse ( )
overridevirtual

Implements parsert.

Definition at line 26 of file assembler_parser.cpp.

Member Data Documentation

◆ instructions

std::list<instructiont> assembler_parsert::instructions

Definition at line 24 of file assembler_parser.h.


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