Inferno  0.2
render.cpp File Reference
#include "tree/cpptree.hpp"
#include "tree/sctree.hpp"
#include "helpers/transformation.hpp"
#include "tree/typeof.hpp"
#include "common/trace.hpp"
#include "common/read_args.hpp"
#include "tree/type_db.hpp"
#include "helpers/walk.hpp"
#include "tree/misc.hpp"
#include "tree/scope.hpp"
#include "sort_decls.hpp"
#include "render.hpp"
#include "clang/Parse/DeclSpec.h"
#include "uniquify_identifiers.hpp"
#include "tree/operator_db.inc"
Include dependency graph for render.cpp:

Go to the source code of this file.

Defines

#define ERROR_UNKNOWN(V)
#define ERROR_UNSUPPORTED(P)   ERROR_UNKNOWN( P ? typeid(*P).name() : "<NULL>" );
#define INFIX(TOK, TEXT, NODE, BASE, CAT)
#define PREFIX(TOK, TEXT, NODE, BASE, CAT)
#define POSTFIX(TOK, TEXT, NODE, BASE, CAT)

Define Documentation

#define ERROR_UNKNOWN (   V)
Value:
string( "\n#error " ) + \
    string( V ) + \
    string( " not supported in " ) + \
    string( INFERNO_CURRENT_FUNCTION ) + \
    string( "\n" );

Definition at line 27 of file render.cpp.

#define ERROR_UNSUPPORTED (   P)    ERROR_UNKNOWN( P ? typeid(*P).name() : "<NULL>" );

Definition at line 34 of file render.cpp.

#define INFIX (   TOK,
  TEXT,
  NODE,
  BASE,
  CAT 
)
Value:
else if( dynamic_pointer_cast<NODE>(op) ) \
    return RenderExpression( operands[0], true ) +\
         TEXT +\
         RenderExpression( operands[1], true );
#define POSTFIX (   TOK,
  TEXT,
  NODE,
  BASE,
  CAT 
)
Value:
else if( dynamic_pointer_cast<NODE>(op) ) \
    return RenderExpression( operands[0], true ) +\
         TEXT;
#define PREFIX (   TOK,
  TEXT,
  NODE,
  BASE,
  CAT 
)
Value:
else if( dynamic_pointer_cast<NODE>(op) ) \
    return TEXT +\
         RenderExpression( operands[0], true );