Parent

Methods

Dhaka::Lexeme

Represents a portion of the input string that has been recognized as matching a given lexer pattern.

Attributes

characters[RW]

The pattern matched by this lexeme.

input_position[R]

input_position is the index in the input stream that this lexeme starts at.

pattern[RW]

The pattern matched by this lexeme.

Public Instance Methods

value() click to toggle source

The substring of the input stream that this lexeme is comprised of.

# File lib/dhaka/lexer/lexeme.rb, line 16
def value
  characters.join
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.