OGRE  2.2.4
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

◆ lexemeEquals()

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

Member Data Documentation

◆ lexemeLen

uint32 Ogre::ScriptToken::lexemeLen

◆ lexemePtr

const char* Ogre::ScriptToken::lexemePtr

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

◆ line

uint32 Ogre::ScriptToken::line

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

Referenced by Ogre::ScriptLexer::~ScriptLexer().

◆ 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: