class Merlin::Debugger(IdentT, NodeT)

Defined in:

debugger/debugger.cr

Constant Summary

ANSI_HIGHLIGHT = "\e[38;2;253;134;42;3m"
ANSI_RESET = "\e[m"
SEPARATOR = "│"

Constructors

Instance Method Summary

Constructor Detail

def self.new(parser : Parser(IdentT, NodeT)) #

[View source]

Instance Method Detail

def fancy_padding #

[View source]
def fancy_padding=(fancy_padding : Bool) #

[View source]
def filter_parent_group #

[View source]
def filter_parent_group=(filter_parent_group : String) #

[View source]
def filter_stack_depth #

filters


[View source]
def filter_stack_depth=(filter_stack_depth : Int32) #

filters


[View source]
def filter_token_name #

[View source]
def filter_token_name=(filter_token_name : String) #

[View source]
def filter_token_number #

[View source]
def filter_token_number=(filter_token_number : Int32) #

[View source]
def filter_token_position #

[View source]
def filter_token_position=(filter_token_position : Int32) #

[View source]
def highlight_backtracked #

[View source]
def highlight_backtracked=(highlight_backtracked : Bool) #

[View source]
def highlight_failed #

[View source]
def highlight_failed=(highlight_failed : Bool) #

[View source]
def highlight_matched #

[View source]
def highlight_matched=(highlight_matched : Bool) #

[View source]
def highlight_trying_group #

ansi highlights


[View source]
def highlight_trying_group=(highlight_trying_group : Bool) #

ansi highlights


[View source]
def initialize_inspector #

[View source]
def log_backtracked(to_key : IdentT, from_lr : Bool) : Nil #

[View source]
def log_failed(pattern_target_key : IdentT, group_key : IdentT, lr : Bool = false) : Nil #

[View source]
def log_halted_backtracking #

[View source]
def log_matched(key : IdentT, lr : Bool = false, from_cache : Bool = false) : Nil #

[View source]
def log_trying(key : IdentT, lr : Bool = false) : Nil #

[View source]
def pad_steps #

[View source]
def pad_steps=(pad_steps : Bool) #

[View source]
def show_ast #

[View source]
def show_ast=(show_ast : Bool) #

[View source]
def show_steps #

actions


[View source]
def show_steps=(show_steps : Bool) #

actions


[View source]
def show_tokenization #

[View source]
def show_tokenization=(show_tokenization : Bool) #

[View source]
def step_field_backtracked #

[View source]
def step_field_backtracked=(step_field_backtracked : Bool) #

[View source]
def step_field_failed #

[View source]
def step_field_failed=(step_field_failed : Bool) #

[View source]
def step_field_matched #

[View source]
def step_field_matched=(step_field_matched : Bool) #

[View source]
def step_field_stack_depth #

step fields


[View source]
def step_field_stack_depth=(step_field_stack_depth : Bool) #

step fields


[View source]
def step_field_token_name #

[View source]
def step_field_token_name=(step_field_token_name : Bool) #

[View source]
def step_field_token_number #

[View source]
def step_field_token_number=(step_field_token_number : Bool) #

[View source]
def step_field_token_position #

[View source]
def step_field_token_position=(step_field_token_position : Bool) #

[View source]
def step_field_trying_group #

[View source]
def step_field_trying_group=(step_field_trying_group : Bool) #

[View source]