![]() |
Qt 6.x
The Qt SDK
|
#include <glsllexer_p.h>
Classes | |
union | Value |
Public Types | |
enum | Variant { Variant_GLSL_120 = 0x00010000 , Variant_GLSL_150 = 0x00020000 , Variant_GLSL_400 = 0x00040000 , Variant_GLSL_ES_100 = 0x00080000 , Variant_VertexShader = 0x00200000 , Variant_FragmentShader = 0x00400000 , Variant_Reserved = 0x80000000 , Variant_Mask = 0xFFFF0000 , Variant_All = 0xFFFF0000 } |
Public Member Functions | |
Lexer (Engine *engine, const char *source, unsigned size) | |
~Lexer () | |
Engine * | engine () const |
int | state () const |
void | setState (int state) |
int | variant () const |
void | setVariant (int flags) |
bool | scanKeywords () const |
void | setScanKeywords (bool scanKeywords) |
bool | scanComments () const |
void | setScanComments (bool scanComments) |
int | yylex (Token *tk) |
int | findKeyword (const char *word, int length) const |
void * | yyval () const |
Static Public Member Functions | |
static QStringList | keywords (int variant) |
Definition at line 51 of file glsllexer_p.h.
enum GLSL::Lexer::Variant |
Enumerator | |
---|---|
Variant_GLSL_120 | |
Variant_GLSL_150 | |
Variant_GLSL_400 | |
Variant_GLSL_ES_100 | |
Variant_VertexShader | |
Variant_FragmentShader | |
Variant_Reserved | |
Variant_Mask | |
Variant_All |
Definition at line 57 of file glsllexer_p.h.
Lexer::Lexer | ( | Engine * | engine, |
const char * | source, | ||
unsigned | size | ||
) |
Definition at line 16 of file glsllexer.cpp.
Lexer::~Lexer | ( | ) |
Definition at line 30 of file glsllexer.cpp.
|
inline |
Definition at line 77 of file glsllexer_p.h.
int Lexer::findKeyword | ( | const char * | word, |
int | length | ||
) | const |
Definition at line 373 of file glsllexer.cpp.
References GLSLParserTable::T_RESERVED, and Variant_Mask.
|
static |
Definition at line 1642 of file glslkeywords.cpp.
References list, variant(), Variant_FragmentShader, Variant_GLSL_120, Variant_GLSL_150, Variant_GLSL_400, Variant_GLSL_ES_100, Variant_Reserved, and Variant_VertexShader.
|
inline |
Definition at line 88 of file glsllexer_p.h.
|
inline |
Definition at line 85 of file glsllexer_p.h.
|
inline |
Definition at line 89 of file glsllexer_p.h.
|
inline |
Definition at line 86 of file glsllexer_p.h.
|
inline |
Definition at line 80 of file glsllexer_p.h.
References state.
|
inline |
Definition at line 83 of file glsllexer_p.h.
Referenced by GLSL::Parser::Parser().
|
inline |
Definition at line 79 of file glsllexer_p.h.
|
inline |
Definition at line 82 of file glsllexer_p.h.
Referenced by keywords().
int Lexer::yylex | ( | Token * | tk | ) |
Definition at line 41 of file glsllexer.cpp.
References GLSL::Token::kind, GLSL::Token::length, line, GLSL::Token::line, pos, GLSL::Token::position, GLSL::Token::ptr, and GLSL::Lexer::Value::ptr.
Referenced by GLSL::Parser::Parser().
|
inline |
Definition at line 94 of file glsllexer_p.h.