Imports System.Text Imports System.Text.RegularExpressions Imports System.Collections.Generic Namespace Tokenization ''' ''' Represents a Tokenized TOKEN. ''' Public Class Token #Region " Private Variables " Private __Name As String Private __Type As Integer Private __Value As String #End Region #Region " Constructors " ''' ''' Initializes an instance of the class. ''' ''' The name of the token. ''' The type of the token. ''' The literal value of the token. Friend Sub New(ByVal name, ByVal type, ByVal value) __Name = name __Type = type __Value = value End Sub #End Region #Region " Public Properties " ''' ''' Gets the name of the rule that matched the token. ''' ''' The name of the rule that matched the token. ''' ''' The name of the token is the name of the rule that matched the toklen. ''' Public ReadOnly Property Name() As String Get Return __Name End Get End Property ''' ''' Gets the type of the rule that matched the token. ''' ''' The type of the rule. ''' ''' The type of the rule is an implementation-specific value that has no meaning outside such implementation. ''' Public ReadOnly Property RuleType() As Integer Get Return __Type End Get End Property ''' ''' Gets the literal value of the token. ''' ''' The literal value of the token. Public ReadOnly Property Value() As String Get Return __Value End Get End Property #End Region End Class End Namespace