class

QT::MtTerm

Inherits QT::MtNode < Reference < Object

Constants

COSTS = {0, 3, 6, 9, 0, 14, 18, 26, 0, 25, 31, 40, 0, 40, 45, 55, 0, 58, 66, 78}

Constructors

new(key, val, dic, ptag : String, prio : Int32)
Source
new(char : Char, idx = 0)
Source
new(key, val = @key, tag = PosTag::Unkn, dic = 0, idx = 0, prio = 2)
Source

Class methods

cost(size : Int32, prio : Int32 = 0)
Source

Instance methods

apply_cap!(cap : Bool = false) : Bool
Source
blank?
Source
clone!(idx : Int32 = @idx) : self
Source
cost
Source
each
Source
ends_with?(key : String | Char)
Source
find_by_key(key : String | Char)
Source
inspect(io : IO = STDOUT, pad = -1) : Nil

Appends a String representation of this object which includes its class name, its object address and the values of all instance variables.

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

Person.new("John", 32).inspect # => #<Person:0x10fd31f20 @name="John", @age=32>
Source
key_in?(*keys : String)
Source
key_is?(key : String)
Source
lit_str?
Source
modifier?
Source
space_before?(prev : MtTerm) : Bool
Source
space_before?(prev : MtNode) : Bool
Source
starts_with?(key : String | Char)
Source
to_int?
Source
to_mtl(io : IO) : Nil
Source
to_txt(io : IO) : Nil
Source