FoodCandy!

Token Class Reference

Represents the individual tokens returned from the scanner to the parser. Note that the Token creation process is sensitive to the ScannerState. This state is defined by what context the scanner currently is in - Parsing IDs, Parmeters, or values: e.g. the iCalendar grammar defines the following possible states id;id=parm:value each string parsed out of the value has to be treated differently (eg. quoted strings are allowed in 'parm' but not in 'id'). More...

List of all members.


Public Member Functions

 Token (string _tokenText, ScannerState _state)
 Token (string _tokenText)
 Token (string _tokenText, ScannerState _state, bool quoteFlag)
 Token (TokenValue _tokenVal)
bool isError ()
bool isSymbolicProperty ()
bool isResourceProperty ()
bool isMailtoProperty ()
bool isBeginEndValue ()
bool isComponent ()
bool isValueProperty ()
void FormatDateTime ()

Static Public Member Functions

static bool isID (string str)
static string CapsCamelCase (string str)
static string CamelCase (string str)
static string ParseDateTime (string icalDate)
static string ParseDate (string icalDate)

Properties

TokenValue TokenVal
string TokenText
string Error

Detailed Description

Represents the individual tokens returned from the scanner to the parser. Note that the Token creation process is sensitive to the ScannerState. This state is defined by what context the scanner currently is in - Parsing IDs, Parmeters, or values: e.g. the iCalendar grammar defines the following possible states id;id=parm:value each string parsed out of the value has to be treated differently (eg. quoted strings are allowed in 'parm' but not in 'id').


The documentation for this class was generated from the following file:
  • Token.cs
© FoodCandy, 2006-2007, All Rights Reserved | FoodCandy | Sun Oct 7 10:48:52 2007 | Doxygen 1.4.6-NO