Class: Dhaka::TokenizerErrorResult

### Home Classes Methods

### In Files

- lib/dhaka/tokenizer/tokenizer.rb

### Parent

Object

### Methods

- ::new
- #has_error?

### 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::TokenizerErrorResult

Returned when tokenizing fails due to an unexpected character in the input stream.

### Attributes

unexpected_char_index[R]

The index of the character that caused the error.

### Public Class Methods

new(unexpected_char_index) click to toggle source

    # File lib/dhaka/tokenizer/tokenizer.rb, line 29
    def initialize(unexpected_char_index)
      @unexpected_char_index = unexpected_char_index
    end

### Public Instance Methods

has_error?() click to toggle source

Returns true.

    # File lib/dhaka/tokenizer/tokenizer.rb, line 34
    def has_error?
      true
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.