Class: Bool::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/bool/ast.rb,
ext/bool_ext/ext.c

Overview

AST classes defined in bool_ext.jar

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, first_line, last_line, first_column, last_column) ⇒ Token

Returns a new instance of Token.



8
9
10
# File 'lib/bool/ast.rb', line 8

def initialize(value, first_line, last_line, first_column, last_column)
  @value, @first_line, @last_line, @first_column, @last_column = value, first_line, last_line, first_column, last_column
end

Instance Attribute Details

#first_columnObject (readonly)

Returns the value of attribute first_column.



6
7
8
# File 'lib/bool/ast.rb', line 6

def first_column
  @first_column
end

#first_lineObject (readonly)

Returns the value of attribute first_line.



6
7
8
# File 'lib/bool/ast.rb', line 6

def first_line
  @first_line
end

#last_columnObject (readonly)

Returns the value of attribute last_column.



6
7
8
# File 'lib/bool/ast.rb', line 6

def last_column
  @last_column
end

#last_lineObject (readonly)

Returns the value of attribute last_line.



6
7
8
# File 'lib/bool/ast.rb', line 6

def last_line
  @last_line
end

#valueObject (readonly)

Returns the value of attribute value.



6
7
8
# File 'lib/bool/ast.rb', line 6

def value
  @value
end