class Steamcr::SteamLanguage::Lexer::Matcher::KeywordMatcher

Included Modules

Defined in:

steamcr/steam_language/lexer/matcher/keyword_matcher.cr

Constructors

Instance Method Summary

Instance methods inherited from module Steamcr::SteamLanguage::Lexer::Matcher

matches?(stream : Tokenizer::Stream) : Token | Nil matches?

Constructor Detail

def self.new(type : TokenType, keyword : String, special_matchers = [] of KeywordMatcher) #

[View source]

Instance Method Detail

def keyword : String #

[View source]
def match?(stream : Tokenizer::Stream) : Token | Nil #

[View source]
def to_s(io : IO) #
Description copied from class Reference

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>

[View source]