class QT::MtTerm

Defined in:

core/mt_node/mt_term.cr

Constant Summary

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

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class QT::MtNode

apply_cap!(cap : Bool) apply_cap!, aspect? aspect?, dic : Int32 dic, dic=(dic : Int32) dic=, ends_with?(key : String | Char) ends_with?, find_by_key(key : String | Char) find_by_key, fix_prev!(prev : Nil) : Nil
fix_prev!(prev : MtNode) : Nil
fix_prev!
, fix_succ!(succ : Nil) : Nil
fix_succ!(succ : MtNode) : Nil
fix_succ!
, idx : Int32 idx, idx=(idx : Int32) idx=, inspect(io : IO) inspect, key : String key, key=(key : String) key=, key_in?(*keys : String) key_in?, key_is?(key : String) key_is?, maybe_adjt? : Bool maybe_adjt?, maybe_verb? : Bool maybe_verb?, prev : MtNode prev, prev=(prev : MtNode) prev=, prev? : MtNode | Nil
prev?(&)
prev?
, set!(val : String, tag : PosTag) : self
set!(val : String) : self
set!(tag : PosTag) : self
set!
, space_before?(prev : Nil) : Bool
space_before?(prev : MtNode)
space_before?
, starts_with?(key : String | Char) starts_with?, succ : MtNode succ, succ=(succ : MtNode) succ=, succ? : MtNode | Nil
succ?(&)
succ?
, tag : PosTag tag, tag=(tag : PosTag) tag=, to_mtl(io : IO) to_mtl, to_txt(io : IO) to_txt, val : String val, val=(val : String) val=, vcompl? vcompl?

Macros inherited from class QT::MtNode

method_missing(call) method_missing

Constructor Detail

def self.new(key, val, dic, ptag : String, prio : Int32) #

[View source]
def self.new(char : Char, idx = 0) #

[View source]
def self.new(key, val = @key, tag = PosTag::Unkn, dic = 0, idx = 0, prio = 2) #

[View source]

Class Method Detail

def self.cost(size : Int32, prio : Int32 = 0) #

[View source]

Instance Method Detail

def apply_cap!(cap : Bool = false) : Bool #

[View source]
def blank? #

[View source]
def clone!(idx : Int32 = @idx) : self #

[View source]
def cost : Int32 #

[View source]
def each(&) #

[View source]
def ends_with?(key : String | Char) #

[View source]
def find_by_key(key : String | Char) #

[View source]
def inspect(io : IO = STDOUT, pad = -1) : Nil #
Description copied from class Reference

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>

[View source]
def key_in?(*keys : String) #

[View source]
def key_is?(key : String) #

[View source]
def lit_str? #

[View source]
def modifier? #

[View source]
def space_before?(prev : MtTerm) : Bool #

[View source]
def space_before?(prev : MtNode) : Bool #

[View source]
def starts_with?(key : String | Char) #

[View source]
def to_int? #

[View source]
def to_mtl(io : IO) : Nil #

[View source]
def to_txt(io : IO) : Nil #

[View source]