OGRE  2.3
Object-Oriented Graphics Rendering Engine
Ogre::ScriptToken Struct Reference

This struct represents a token, which is an ID'd lexeme from the parsing input stream. More...

#include <OgreScriptLexer.h>

Public Member Functions

String lexeme (bool unquote=false) const
 
bool lexemeEquals (const char *str) const
 

Public Attributes

uint32 lexemeLen
 
const char * lexemePtr
 This is the lexeme for this token, points into ScriptLexer::lexemeStorage. More...
 
uint32 line
 This holds the line number of the input stream where the token was found. More...
 
uint32 type
 This is the id associated with the lexeme, which comes from a lexeme-token id mapping. More...
 

Detailed Description

This struct represents a token, which is an ID'd lexeme from the parsing input stream.

Member Function Documentation

◆ lexeme()

String Ogre::ScriptToken::lexeme ( bool  unquote = false) const
inline

References lexemeLen, and lexemePtr.

◆ lexemeEquals()

bool Ogre::ScriptToken::lexemeEquals ( const char *  str) const
inline

References lexemeLen, and lexemePtr.

Member Data Documentation

◆ lexemeLen

uint32 Ogre::ScriptToken::lexemeLen

Referenced by lexeme(), and lexemeEquals().

◆ lexemePtr

const char* Ogre::ScriptToken::lexemePtr

This is the lexeme for this token, points into ScriptLexer::lexemeStorage.

Referenced by lexeme(), and lexemeEquals().

◆ line

uint32 Ogre::ScriptToken::line

This holds the line number of the input stream where the token was found.

◆ type

uint32 Ogre::ScriptToken::type

This is the id associated with the lexeme, which comes from a lexeme-token id mapping.


The documentation for this struct was generated from the following file: