User Guide
symbol_table.cpp File Reference
#include <memory>
#include <string>
#include <catch2/catch_test_macros.hpp>
#include <catch2/matchers/catch_matchers_string.hpp>
#include "ast/float.hpp"
#include "ast/program.hpp"
#include "ast/string.hpp"
#include "symtab/symbol.hpp"
#include "symtab/symbol_table.hpp"

Go to the source code of this file.

Functions

 SCENARIO ("Symbol properties can be added and converted to string")
 
 SCENARIO ("Multiple properties can be added to Symbol")
 
 SCENARIO ("Symbol table allows operations like insert, lookup")
 
 SCENARIO ("Global symbol table (ModelSymbol) allows scope based operations")
 
 SCENARIO ("Symbol class allows manipulation")
 

Function Documentation

◆ SCENARIO() [1/5]

SCENARIO ( "Global symbol table (ModelSymbol) allows scope based operations"  )
Todo:
: not sure how to capture std::cout

Definition at line 305 of file symbol_table.cpp.

◆ SCENARIO() [2/5]

SCENARIO ( "Multiple properties can be added to Symbol )

Definition at line 96 of file symbol_table.cpp.

◆ SCENARIO() [3/5]

SCENARIO ( "Symbol class allows manipulation"  )

Definition at line 384 of file symbol_table.cpp.

◆ SCENARIO() [4/5]

SCENARIO ( "Symbol properties can be added and converted to string"  )

Definition at line 28 of file symbol_table.cpp.

◆ SCENARIO() [5/5]

SCENARIO ( "Symbol table allows operations like  insert,
lookup"   
)

Definition at line 166 of file symbol_table.cpp.