class Syntaks::ParseLog

Defined in:

syntaks/parse_log.cr

Constant Summary

ARROW = "↳"
COLOR_MAP = {End::Kind::SUCCESS => :green, End::Kind::FAILURE => :yellow, End::Kind::ERROR => :red}
CROSS = "✕"
DOT = "•"
ERROR = "⚡"
MARKER_MAP = {End::Kind::SUCCESS => TICK, End::Kind::FAILURE => CROSS, End::Kind::ERROR => ERROR}
TICK = "✓"

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : Syntaks::Source) #

[View source]

Instance Method Detail

def log : Array(Entry) #

[View source]
def log_end(rule : EBNF::Component, state : State, result : Success | Failure | Error) #

[View source]
def log_start(rule : EBNF::Component, start : Int32) #

[View source]
def source : Source #

[View source]
def started_at : Time #

[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]