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

Public Member Functions

int parse (int argc, char **argv)
 
bool has_option (const std::string &opt_name) const
 
std::string get_arg (const std::string &opt_name) const
 
IRKind get_ir_kind_goal () const
 
CodeFormat get_code_format_goal () const
 
std::string get_usage () const
 

Static Public Attributes

static constexpr const char * PRINT_TOKENS = "-l"
 
static constexpr const char * PRINT_AST = "-p"
 
static constexpr const char * PRINT_SYMTAB = "-a"
 
static constexpr const char * OPTIMIZE = "-o"
 
static constexpr const char * PRINT_CFG = "-C"
 
static constexpr const char * HIGHLEVEL = "-h"
 
static constexpr const char * PRINT_DATAFLOW = "-D"
 

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