// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Shader generator" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include namespace Nz::ShaderLang { inline Parser::Parser() : m_context(nullptr) { } inline ShaderAst::StatementPtr Parse(const std::string_view& source) { return Parse(Tokenize(source)); } inline ShaderAst::StatementPtr Parse(const std::vector& tokens) { Parser parser; return parser.Parse(tokens); } } #include