Spicy
global.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <optional>
6 #include <string>
7 
8 #include <hilti/ast/ctor.h>
9 #include <hilti/ast/expression.h>
10 #include <hilti/ast/id.h>
11 #include <hilti/ast/module.h>
12 #include <hilti/ast/node-ref.h>
13 #include <hilti/ast/type.h>
14 #include <hilti/base/logger.h>
15 #include <hilti/base/visitor-types.h>
16 
17 namespace hilti {
18 
27 Result<Node> parseSource(std::istream& in, const std::string& filename);
28 
38 extern void render(std::ostream& out, const Node& node, bool include_scopes = false);
39 
49 extern void render(logging::DebugStream stream, const Node& node, bool include_scopes = false);
50 
63 inline void print(std::ostream& out, const Node& node, bool compact = false) { node.print(out, compact); }
64 
65 } // namespace hilti
void print(const T &t, bool newline=true)
Definition: hilti.h:22