class Byebug::EvalCommand

def description

def description
  %{
    (p|e[val]) expression\tevaluate expression and print its value
    * NOTE - to turn on autoeval, use 'set autoeval'
   }
end

def execute

def execute
  expr = @match ? @match.post_match : @input
  run_with_binding do |b|
    print "#{debug_eval(expr, b).inspect}\n"
  end
end

def match(input)

def match(input)
  @input = input
  super
end

def names

def names
  %w(p eval)
end

def regexp

def regexp
  /^\s*(p|e(?:val)?)\s+/
end