sherpa::LToken Struct Reference

#include <LToken.hxx>


Public Member Functions

char operator[] (size_t pos) const
 LToken ()
 LToken (int tokType, const LexLoc &loc, const LexLoc &endLoc, const std::string &s)
 LToken (int tokType, const LToken &that)
 LToken (int tokType, const std::string &str)
LTokenoperator= (const LToken &that)

Data Fields

int tokType
int prevTokType
TokenFlags flags
LexLoc loc
LexLoc endLoc
std::string str


Detailed Description

Definition at line 89 of file LToken.hxx.


Constructor & Destructor Documentation

sherpa::LToken::LToken (  )  [inline]

Definition at line 104 of file LToken.hxx.

References flags, prevTokType, TF_NO_FLAGS, and tokType.

sherpa::LToken::LToken ( int  tokType,
const LexLoc loc,
const LexLoc endLoc,
const std::string &  s 
) [inline]

Definition at line 123 of file LToken.hxx.

References endLoc, flags, loc, prevTokType, str, and TF_NO_FLAGS.

sherpa::LToken::LToken ( int  tokType,
const LToken that 
) [inline]

Definition at line 134 of file LToken.hxx.

References endLoc, flags, loc, prevTokType, str, and tokType.

sherpa::LToken::LToken ( int  tokType,
const std::string &  str 
) [inline]

Definition at line 144 of file LToken.hxx.

References endLoc, flags, loc, prevTokType, and TF_NO_FLAGS.


Member Function Documentation

LToken& sherpa::LToken::operator= ( const LToken that  )  [inline]

Definition at line 154 of file LToken.hxx.

References endLoc, flags, loc, prevTokType, str, and tokType.

char sherpa::LToken::operator[] ( size_t  pos  )  const [inline]

Definition at line 99 of file LToken.hxx.

References str.


Field Documentation

LexLoc sherpa::LToken::endLoc

Definition at line 96 of file LToken.hxx.

Referenced by TransitionLexer::lex(), LToken(), and operator=().

TokenFlags sherpa::LToken::flags

Definition at line 93 of file LToken.hxx.

Referenced by TransitionLexer::beginBlock(), TransitionLexer::endBlock(), LToken(), and operator=().

LexLoc sherpa::LToken::loc

Definition at line 95 of file LToken.hxx.

Referenced by TransitionLexer::endBlock(), LToken(), operator=(), TransitionLexer::ReportParseError(), and TransitionLexer::ReportParseWarning().

int sherpa::LToken::prevTokType

Definition at line 91 of file LToken.hxx.

Referenced by TransitionLexer::lex(), LToken(), operator=(), and TransitionLexer::pushTokenBack().

std::string sherpa::LToken::str

Definition at line 97 of file LToken.hxx.

Referenced by LToken(), AST::makeBoolLit(), AST::makeCharLit(), AST::makeFloatLit(), AST::makeIntLit(), AST::makeStringLit(), operator=(), and operator[]().

int sherpa::LToken::tokType

Definition at line 90 of file LToken.hxx.

Referenced by TransitionLexer::beginBlock(), TransitionLexer::lex(), LToken(), and operator=().


The documentation for this struct was generated from the following file:
Generated on Fri Feb 10 07:59:21 2012 for BitC Compiler by  doxygen 1.4.7