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 "spicy/ast/aliases.h"
9 
10 namespace spicy {
11 
20 hilti::Result<hilti::Node> parseSource(std::istream& in, const std::string& filename);
21 
30 hilti::Result<Expression> parseExpression(const std::string& expr, const Meta& m = Meta());
31 
32 } // namespace spicy
Definition: result.h:67