Class: SrcLexer::Lexer::PosInfo

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePosInfo

Returns a new instance of PosInfo.



56
57
58
59
60
# File 'lib/src_lexer.rb', line 56

def initialize
  @index = 0
  @line_no = 1
  @char_no = 1
end

Instance Attribute Details

#char_noObject

Returns the value of attribute char_no.



54
55
56
# File 'lib/src_lexer.rb', line 54

def char_no
  @char_no
end

#indexObject

Returns the value of attribute index.



54
55
56
# File 'lib/src_lexer.rb', line 54

def index
  @index
end

#line_noObject

Returns the value of attribute line_no.



54
55
56
# File 'lib/src_lexer.rb', line 54

def line_no
  @line_no
end