Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Protected Types | Protected Member Functions | List of all members
Graphics::ShaderParser::Parser Class Reference

#include <ShaderParser.h>

Public Member Functions

ShaderInfo Parse (std::string filename, std::string_view fileData)
 

Protected Types

enum  ParseResult { DidNotMatch , ParseFailure , Parsed }
 

Protected Member Functions

ParseResult parseTexture ()
 
ParseResult parseBuffer ()
 
ParseResult parsePushConstant ()
 
void advance ()
 
bool advanceIfType (Token::Type type, bool shouldExpect=true)
 
bool advanceIfKeyword (std::string_view keyword)
 
bool advanceIfLineRemaining ()
 
bool expect (Token::Type type, const Token &tok)
 
bool isKeyword (std::string_view keyword, const Token &tok)
 
std::string makeLineInfo ()
 

Member Enumeration Documentation

◆ ParseResult

Enumerator
DidNotMatch 
ParseFailure 
Parsed 

Member Function Documentation

◆ advance()

void Parser::advance ( )
protected

◆ advanceIfKeyword()

bool Parser::advanceIfKeyword ( std::string_view  keyword)
protected
Here is the call graph for this function:

◆ advanceIfLineRemaining()

bool Parser::advanceIfLineRemaining ( )
protected
Here is the call graph for this function:

◆ advanceIfType()

bool Parser::advanceIfType ( Token::Type  type,
bool  shouldExpect = true 
)
protected
Here is the call graph for this function:

◆ expect()

bool Parser::expect ( Token::Type  type,
const Token tok 
)
protected
Here is the call graph for this function:

◆ isKeyword()

bool Parser::isKeyword ( std::string_view  keyword,
const Token tok 
)
protected

◆ makeLineInfo()

std::string Parser::makeLineInfo ( )
protected

◆ Parse()

ShaderInfo Parser::Parse ( std::string  filename,
std::string_view  fileData 
)
Here is the call graph for this function:

◆ parseBuffer()

Parser::ParseResult Parser::parseBuffer ( )
protected
Here is the call graph for this function:

◆ parsePushConstant()

Parser::ParseResult Parser::parsePushConstant ( )
protected
Here is the call graph for this function:

◆ parseTexture()

Parser::ParseResult Parser::parseTexture ( )
protected
Here is the call graph for this function:

The documentation for this class was generated from the following files: