1 #ifndef MSP_GL_SL_OUTPUT_H_
2 #define MSP_GL_SL_OUTPUT_H_
11 class Formatter: private TraversingVisitor
15 std::string formatted;
16 unsigned source_index;
20 std::string block_interface;
25 const std::string &apply(Stage &);
28 void append(const std::string &);
30 void set_source(unsigned, unsigned);
32 virtual void visit(Block &);
33 virtual void visit(Literal &);
34 virtual void visit(ParenthesizedExpression &);
35 virtual void visit(VariableReference &);
36 virtual void visit(MemberAccess &);
37 virtual void visit(UnaryExpression &);
38 virtual void visit(BinaryExpression &);
39 virtual void visit(Assignment &);
40 virtual void visit(FunctionCall &);
41 virtual void visit(ExpressionStatement &);
42 virtual void visit(Import &);
43 virtual void visit(Precision &);
44 virtual void visit(Layout &);
45 virtual void visit(InterfaceLayout &);
46 virtual void visit(StructDeclaration &);
47 virtual void visit(VariableDeclaration &);
48 virtual void visit(InterfaceBlock &);
49 virtual void visit(FunctionDeclaration &);
50 virtual void visit(Conditional &);
51 virtual void visit(Iteration &);
52 virtual void visit(Return &);
53 virtual void visit(Jump &);
54 using TraversingVisitor::visit;