source: icGREP/icgrep-devel/icgrep/printer_pablos.h @ 3911

Last change on this file since 3911 was 3850, checked in by cameron, 5 years ago

icgrep-0.8 distribution

File size: 1.3 KB
Line 
1/*
2 *  Copyright (c) 2014 International Characters.
3 *  This software is licensed to the public under the Open Software License 3.0.
4 *  icgrep is a trademark of International Characters.
5 */
6
7#ifndef SHOW_H
8#define SHOW_H
9
10//Regular Expressions
11#include "re_re.h"
12#include "re_cc.h"
13#include "re_start.h"
14#include "re_end.h"
15#include "re_seq.h"
16
17//Pablo Expressions
18#include "pe_pabloe.h"
19#include "pe_sel.h"
20#include "pe_advance.h"
21#include "pe_all.h"
22#include "pe_and.h"
23#include "pe_charclass.h"
24#include "pe_not.h"
25#include "pe_or.h"
26#include "pe_var.h"
27#include "pe_xor.h"
28#include "pe_matchstar.h"
29
30//Pablo Statements
31#include "ps_pablos.h"
32#include "ps_assign.h"
33#include "ps_if.h"
34
35#include "pbix_compiler.h"
36
37//Code Generation
38#include "symbol_generator.h"
39
40#include <iostream>
41#include <string>
42#include <sstream>
43#include <list>
44
45#define INT2STRING(i) static_cast<std::ostringstream*>(&(std::ostringstream() << i))->str()
46
47class StatementPrinter
48{
49public:
50    static std::string PrintStmts(CodeGenState cg_state);
51    static std::string Print_CC_PabloStmts(std::list<PabloS*> stmts);
52    static std::string Print_PB_PabloStmts(std::list<PabloS*> stmts, std::string strOut);
53    static std::string ShowPabloE(PabloE* expr);
54    static std::string ShowPabloS(PabloS* stmt);
55private:
56    StatementPrinter();
57};
58
59#endif // SHOW_H
Note: See TracBrowser for help on using the repository browser.