Class: AjLisp::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/ajlisp/token.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, type) ⇒ Token

Returns a new instance of Token.



8
9
10
11
# File 'lib/ajlisp/token.rb', line 8

def initialize(value, type)
	@value = value
	@type = type
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/ajlisp/token.rb', line 6

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



5
6
7
# File 'lib/ajlisp/token.rb', line 5

def value
  @value
end