Public Types | Public Member Functions | Public Attributes

token Struct Reference

#include <tokenizer.hpp>

Collaboration diagram for token:
Collaboration graph
[legend]

List of all members.

Public Types

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

Public Member Functions

 token ()

Public Attributes

token_type type
std::string value

Detailed Description

Definition at line 27 of file tokenizer.hpp.


Member Enumeration Documentation

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

Definition at line 34 of file tokenizer.hpp.


Constructor & Destructor Documentation

token::token (  )  [inline]

Definition at line 29 of file tokenizer.hpp.


Member Data Documentation

Definition at line 52 of file tokenizer.hpp.

Referenced by tokenizer::next_token().

std::string token::value

Definition at line 53 of file tokenizer.hpp.

Referenced by tokenizer::next_token().


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:14:53 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs