class WikiThat::Token

Tokens are typed data found by a Lexer @author Bryan T. Meyers

Attributes

type[R]
value[R]

Public Class Methods

new(type, value = nil) click to toggle source

Create a new token

@param [Symbol] type the type for this Token @param [Object] value optional value for this Token @return [Token] a newly created Token

# File lib/wiki-that/lexer/tokens/token.rb, line 29
def initialize(type, value = nil)
  @type  = type
  @value = value
end