forked from lcompilers/lpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpickle.h
More file actions
25 lines (18 loc) · 786 Bytes
/
Copy pathpickle.h
File metadata and controls
25 lines (18 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef LFORTRAN_PICKLE_H
#define LFORTRAN_PICKLE_H
#include <lpython/parser/parser_stype.h>
#include <lpython/ast.h>
#include <libasr/asr.h>
namespace LFortran {
// Pickle a token
std::string pickle(int token, const YYSTYPE &yystype, bool colors=false);
// Pickle an AST node
std::string pickle(AST::ast_t &ast, bool colors=false, bool indent=false);
std::string pickle(AST::TranslationUnit_t &ast, bool colors=false, bool indent=false);
// Pickle an ASR node
std::string pickle(ASR::asr_t &asr, bool colors=false, bool indent=false,
bool show_intrinsic_modules=false);
std::string pickle(ASR::TranslationUnit_t &asr, bool colors=false,
bool indent=false, bool show_intrinsic_modules=false);
}
#endif // LFORTRAN_PICKLE_H