Class: Dhaka::Lexeme

### Home Classes Methods

### In Files

- lib/dhaka/lexer/lexeme.rb

### Parent

Object

### Methods

- #value

### Class/Module Index

Quicksearch

- Dhaka
- Dhaka::CompiledLexer
- Dhaka::CompiledParser
- Dhaka::Evaluator
- Dhaka::Grammar
- Dhaka::GrammarSymbol
- Dhaka::Lexeme
- Dhaka::Lexer
- Dhaka::LexerRun
- Dhaka::LexerSpecification
- Dhaka::LexerSupport
- Dhaka::LexerSupport::AcceptAction
- Dhaka::LexerSupport::CheckpointAction
- Dhaka::LexerSupport::DFARun
- Dhaka::LexerSupport::InvalidRegexException
- Dhaka::LexerSupport::LookaheadAcceptAction
- Dhaka::LexerSupport::RegexParser
- Dhaka::LexerSupport::RegexTokenizer
- Dhaka::LexerSupport::State
- Dhaka::LexerSupport::StateMachine
- Dhaka::NoStartProductionsError
- Dhaka::ParseErrorResult
- Dhaka::ParseSuccessResult
- Dhaka::ParseTreeCompositeNode
- Dhaka::ParseTreeLeafNode
- Dhaka::Parser
- Dhaka::ParserMethods
- Dhaka::PrecedenceBuilder
- Dhaka::Production
- Dhaka::ProductionBuilder
- Dhaka::Token
- Dhaka::Tokenizer
- Dhaka::TokenizerErrorResult
- Dhaka::TokenizerState
- Dhaka::TokenizerSuccessResult

No matching classes.

# 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.