Improve printing of ASTs
This commit is contained in:
		
							parent
							
								
									84a13dc576
								
							
						
					
					
						commit
						ecc2c8f464
					
				
					 3 changed files with 58 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -58,12 +58,6 @@ public:
 | 
			
		|||
    friend std::ostream & operator << (std::ostream & str, const Symbol & sym);
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
inline std::ostream & operator << (std::ostream & str, const Symbol & sym)
 | 
			
		||||
{
 | 
			
		||||
    str << *sym.s;
 | 
			
		||||
    return str;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
class SymbolTable
 | 
			
		||||
{
 | 
			
		||||
private:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue