token Struct Reference

#include <tokenizer.hpp>

List of all members.

Public Types

enum  token_type {
  STRING, QSTRING, UNTERMINATED_QSTRING, MISC,
  LF = '\n', EQUALS = '=', COMMA = ',', PLUS = '+',
  SLASH = '/', OPEN_BRACKET = '[', CLOSE_BRACKED = ']', UNDERSCORE = '_',
  END
}

Public Member Functions

 token ()

Public Attributes

enum token::token_type type
std::string leading_spaces
std::string value


Detailed Description

Definition at line 28 of file tokenizer.hpp.


Member Enumeration Documentation

Enumerator:
STRING 
QSTRING 
UNTERMINATED_QSTRING 
MISC 
LF 
EQUALS 
COMMA 
PLUS 
SLASH 
OPEN_BRACKET 
CLOSE_BRACKED 
UNDERSCORE 
END 

Definition at line 36 of file tokenizer.hpp.


Constructor & Destructor Documentation

token::token (  )  [inline]

Definition at line 30 of file tokenizer.hpp.


Member Data Documentation

Referenced by tokenizer::next_token().

std::string token::leading_spaces

Definition at line 53 of file tokenizer.hpp.

Referenced by tokenizer::next_token().

std::string token::value

Definition at line 54 of file tokenizer.hpp.

Referenced by tokenizer::next_token().


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

Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs