Class: Dhaka::LexerSupport::CheckpointAction

### Home Classes Methods

### In Files

- lib/dhaka/lexer/dfa.rb

### Parent

Object

### Methods

- ::new
- #call
- #compile_to_ruby_source

### 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::LexerSupport::CheckpointAction

### Attributes

pattern[R]

### Public Class Methods

new(pattern) click to toggle source

    # File lib/dhaka/lexer/dfa.rb, line 11
    def initialize(pattern)
      @pattern = pattern
    end

### Public Instance Methods

call(lexer_run) click to toggle source

    # File lib/dhaka/lexer/dfa.rb, line 15
    def call(lexer_run)
      lexer_run.save_checkpoint(pattern)
    end

compile_to_ruby_source() click to toggle source

    # File lib/dhaka/lexer/dfa.rb, line 19
    def compile_to_ruby_source
      "add_checkpoint(#{pattern.inspect})"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.