// Copyright (C) 2021 Jérôme "Lynix" Leclercq (lynix680@gmail.com) // This file is part of the "Nazara Engine - Shader module" // 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